Class: AddAuthorToPages
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddAuthorToPages
- Defined in:
- lib/generators/tkh_content/create_or_update_migrations/templates/add_author_to_pages.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 |
# File 'lib/generators/tkh_content/create_or_update_migrations/templates/add_author_to_pages.rb', line 2 def change add_column :pages, :author_id, :integer add_index :pages, :author_id end |