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

Version Path
udongo-3.0.0 db/migrate/20150515134044_create_pages.rb
udongo-2.0.4 db/migrate/20150515134044_create_pages.rb
udongo-2.0.3 db/migrate/20150515134044_create_pages.rb
udongo-2.0.2 db/migrate/20150515134044_create_pages.rb
udongo-2.0.1 db/migrate/20150515134044_create_pages.rb
udongo-2.0.0 db/migrate/20150515134044_create_pages.rb
udongo-1.0.4 db/migrate/20150515134044_create_pages.rb
udongo-1.0.3 db/migrate/20150515134044_create_pages.rb
udongo-1.0.2 db/migrate/20150515134044_create_pages.rb
udongo-1.0.1 db/migrate/20150515134044_create_pages.rb
udongo-1.0.0 db/migrate/20150515134044_create_pages.rb
udongo-0.1.0 db/migrate/20150515134044_create_pages.rb