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-7.9.0 db/migrate/20150515134044_create_pages.rb
udongo-7.8.1 db/migrate/20150515134044_create_pages.rb
udongo-7.8.0 db/migrate/20150515134044_create_pages.rb
udongo-7.7.2 db/migrate/20150515134044_create_pages.rb
udongo-7.7.1 db/migrate/20150515134044_create_pages.rb
udongo-7.7.0 db/migrate/20150515134044_create_pages.rb
udongo-7.6.2 db/migrate/20150515134044_create_pages.rb
udongo-7.6.1 db/migrate/20150515134044_create_pages.rb
udongo-7.6.0 db/migrate/20150515134044_create_pages.rb
udongo-7.5.1 db/migrate/20150515134044_create_pages.rb
udongo-7.5.0 db/migrate/20150515134044_create_pages.rb
udongo-7.4.2 db/migrate/20150515134044_create_pages.rb
udongo-7.4.1 db/migrate/20150515134044_create_pages.rb
udongo-7.4.0 db/migrate/20150515134044_create_pages.rb
udongo-7.3.5 db/migrate/20150515134044_create_pages.rb
udongo-7.3.4 db/migrate/20150515134044_create_pages.rb
udongo-7.3.3 db/migrate/20150515134044_create_pages.rb
udongo-7.3.2 db/migrate/20150515134044_create_pages.rb
udongo-7.3.1 db/migrate/20150515134044_create_pages.rb
udongo-7.2.1 db/migrate/20150515134044_create_pages.rb