Sha256: de0fbd5eecbedc1be71c60eddf1db31086a04b53f740af1b511f68dc9d029e62

Contents?: true

Size: 587 Bytes

Versions: 11

Compression:

Stored size: 587 Bytes

Contents

# This migration comes from quadro (originally 20141129022344)
class CreateQuadroPages < ActiveRecord::Migration
  def change
    create_table :quadro_pages do |t|
      t.references :author
      t.string :title
      t.string :slug
      t.string :summary
      t.string :ancestry
      t.integer :ancestry_depth, default: 0
      t.text :settings
      t.timestamp :deleted_at
      t.timestamps
    end

    add_index :quadro_pages, :slug, unique: true
    add_index :quadro_pages, :ancestry
    add_index :quadro_pages, :deleted_at
    add_index :quadro_pages, :author_id
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
quadro-0.6.1 test/dummy/db/migrate/20160701222829_create_quadro_pages.quadro.rb
quadro-0.6.0 test/dummy/db/migrate/20160701222829_create_quadro_pages.quadro.rb
quadro-0.5.8 test/dummy/db/migrate/20160615055718_create_quadro_pages.quadro.rb
quadro-0.5.7 test/dummy/db/migrate/20160615055718_create_quadro_pages.quadro.rb
quadro-0.5.6 test/dummy/db/migrate/20160615055718_create_quadro_pages.quadro.rb
quadro-0.5.5 test/dummy/db/migrate/20160615055718_create_quadro_pages.quadro.rb
quadro-0.5.4 test/dummy/db/migrate/20160615055718_create_quadro_pages.quadro.rb
quadro-0.5.3 test/dummy/db/migrate/20160615055718_create_quadro_pages.quadro.rb
quadro-0.5.2 test/dummy/db/migrate/20160615055718_create_quadro_pages.quadro.rb
quadro-0.5.1 test/dummy/db/migrate/20160615055718_create_quadro_pages.quadro.rb
quadro-0.5.0 test/dummy/db/migrate/20160615055718_create_quadro_pages.quadro.rb