Sha256: 50de9f75e327d7e3b5f565afc5d7169c5edb44b413a810c7e5c335124d377535

Contents?: true

Size: 394 Bytes

Versions: 5

Compression:

Stored size: 394 Bytes

Contents

class CreatePages < ActiveRecord::Migration
  def change
    create_table :pages do |t|
      t.string :title
      t.string :en_name
      t.text :content
      t.integer :parent_id
      t.references :template, index: true, foreign_key: true
      t.references :prototype, index: true, foreign_key: true
      t.integer :position, default: 0

      t.timestamps null: false
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blacksand-2.5.0 db/migrate/20151112055821_create_pages.rb
blacksand-2.4.1 db/migrate/20151112055821_create_pages.rb
blacksand-2.4.0 db/migrate/20151112055821_create_pages.rb
blacksand-2.3.0 db/migrate/20151112055821_create_pages.rb
blacksand-2.2.2.1 db/migrate/20151112055821_create_pages.rb