View difference between Paste ID: Lz0EnAv8 and LTpch9Hg
SHOW: | | - or go back to the newest paste.
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