Sha256: 4d5e262ede5242ac87bb1b7ce50f7783ad14480f8821aa07507f26686f181840
Contents?: true
Size: 452 Bytes
Versions: 72
Compression:
Stored size: 452 Bytes
Contents
class CreatePages < ActiveRecord::Migration def up create_table :pages do |t| t.string :identifier t.string :description t.integer :parent_id t.integer :position t.boolean :visible t.boolean :deletable t.boolean :draggable t.boolean :trashed t.timestamps end add_index :pages, :parent_id, name: :index_page_parent_id, using: :btree end def down drop_table :pages end end
Version data entries
72 entries across 72 versions & 1 rubygems