Advertisement
twinfacer

mgr

May 13th, 2014
505
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class CreateSitePages < ActiveRecord::Migration
  2.   def change
  3.     create_table :site_pages do |t|
  4.       t.references :site, null: false, index: true
  5.       t.references :site_section, index: true
  6.       t.string :name, null: false
  7.       t.string :code, null: false
  8.       t.string :url, null: false
  9.       t.boolean :is_published, null: false, default: false
  10.      
  11.       t.timestamps
  12.     end
  13.   end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement