Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ChangePageToSectionPageInSiteTemplates < ActiveRecord::Migration
- def change
- remove_column :site_templates, :site_section_id
- remove_column :site_templates, :page_id
- remove_index :site_templates, :site_section_id
- remove_index :site_templates, :page_id
- add_column :site_templates, :site_section_id, :integer, null: false
- add_column :site_templates, :section_page_id, :integer
- add_index :site_templates, :section_page_id
- add_index :site_templates, :page_id
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement