* missing rails version 4.2 added to pre 5 migrations * updated carrierwave.rb and sitemap.rb with AWS_DEFAULT_REGION
14 lines
305 B
Ruby
14 lines
305 B
Ruby
class CreateArticles < ActiveRecord::Migration[4.2]
|
|
def change
|
|
create_table :articles do |t|
|
|
t.integer :author_id
|
|
t.string :title
|
|
t.text :body_html
|
|
t.text :intro_html
|
|
t.text :slug
|
|
|
|
t.timestamps null: false
|
|
end
|
|
add_index("articles", "author_id")
|
|
end
|
|
end
|