Sha256: 4a2cd766ed06985614d9f59b7ab19115b02c234fcdb660f8593038713a4e0339

Contents?: true

Size: 510 Bytes

Versions: 9

Compression:

Stored size: 510 Bytes

Contents

class CreatePrices < ActiveRecord::Migration[5.1]
  def change
    create_table :dhatu_prices do |t|
      t.string :title, :null => false, limit: 128
      t.string :sub_title
      t.text :price
      
      t.references :category, index: true
      
      t.string :status, :null => false, :default=>"unpublished", :limit=>16
      t.boolean :featured, default: false
      t.integer :priority, default: 1, null: false

      t.timestamps null: false
    end

    add_index :dhatu_prices, :status
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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