Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CreateContents < ActiveRecord::Migration
- def self.up
- create_table :contents do |t|
- t.text :data
- # t.integer :layout_order
- t.integer :position
- # :position is idiomatic rails
- t.integer :element_id
- t.integer :webpage_id
- t.integer :parent_id
- t.timestamps
- end
- end
- def self.down
- drop_table :contents
- end
- end
Add Comment
Please, Sign In to add comment