Skip to content

Instantly share code, notes, and snippets.

@cdesch
Created September 18, 2017 15:00
Show Gist options
  • Save cdesch/6e35fa02d88754d6567beb99a4a6517e to your computer and use it in GitHub Desktop.
Save cdesch/6e35fa02d88754d6567beb99a4a6517e to your computer and use it in GitHub Desktop.
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