Sha256: 2e52814c2b15ce05d0e6c72793364e39fb1327ef47d5167847c6b9efe7cbd207

Contents?: true

Size: 496 Bytes

Versions: 9

Compression:

Stored size: 496 Bytes

Contents

class CreatePages < ActiveRecord::Migration[5.1]
  def change
    create_table :dhatu_pages do |t|
      t.string :name, :null => false, limit: 64
      t.string :code, :null => false, limit: 64
      
      t.references :feature

      t.string :status, :null => false, :default=>"unpublished", :limit=>16
      t.integer :priority, default: 1, null: false

      t.timestamps null: false
    end

    add_index :dhatu_pages, :code, :unique => true
    add_index :dhatu_pages, :status
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
dhatu-0.3.9.pre.materialize db/migrate/20171010055101_create_pages.rb
dhatu-0.3.8.pre.materialize db/migrate/20171010055101_create_pages.rb
dhatu-0.3.7.pre.materialize db/migrate/20171010055101_create_pages.rb
dhatu-0.3.6.pre.materialize db/migrate/20171010055101_create_pages.rb
dhatu-0.3.5.pre.materialize db/migrate/20171010055101_create_pages.rb
dhatu-0.3.4.pre.materialize db/migrate/20171010055101_create_pages.rb
dhatu-0.3.3.pre.materialize db/migrate/20171010055101_create_pages.rb
dhatu-0.3.2.pre.materialize db/migrate/20171010055101_create_pages.rb
dhatu-0.3.1.pre.materialize db/migrate/20171010055101_create_pages.rb