Created
September 18, 2017 15:00
-
-
Save cdesch/6e35fa02d88754d6567beb99a4a6517e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lass CreateCaseStudies < ActiveRecord::Migration[5.1] | |
def change | |
create_table :case_studies do |t| | |
t.string :title | |
t.text :description | |
t.text :short_description | |
t.string :slug | |
t.text :content | |
t.boolean :hidden, default: false | |
t.datetime :published_at | |
t.string :seo_tags | |
t.seo_description | |
t.string :image | |
t.timestamps | |
end | |
add_index :case_studies, :slug, unique: true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment