Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CreateNavigationItems < ActiveRecord::Migration
- def change
- create_table :navigation_items do |t|
- t.references :site, index: true, null: false
- t.string :title, null: false
- t.string :link
- t.string :ancestry
- t.integer :position, null: false, default: 0
- t.datetime :deleted_at
- t.timestamps
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement