Sha256: a555e9e4d275eaa7c1cc74ef7606ac67323c03502d6cb32d04dddf434de6941b

Contents?: true

Size: 433 Bytes

Versions: 35

Compression:

Stored size: 433 Bytes

Contents

class CreateDiscounts < ActiveRecord::Migration
  def change
    create_table :discounts do |t|
      t.string :code, :null => false
      t.boolean :active, :null => false, :default => true
      t.string :promotion_type, :null => false
      t.text :properties
      t.integer :event_id, :null => false
      t.integer :organization_id, :null => false
      t.integer :user_id, :null => false

      t.timestamps
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
artfully_ose-1.3.0.pre4 db/migrate/20121024143846_create_discounts.rb
artfully_ose-1.3.0.pre3 db/migrate/20121024143846_create_discounts.rb
artfully_ose-1.3.0.pre2 db/migrate/20121024143846_create_discounts.rb
artfully_ose-1.3.0.pre1 db/migrate/20121024143846_create_discounts.rb
artfully_ose-1.2.0 db/migrate/20121024143846_create_discounts.rb
artfully_ose-1.2.0.beta.1 db/migrate/20121024143846_create_discounts.rb
artfully_ose-1.2.0.alpha.2 db/migrate/20121024143846_create_discounts.rb
artfully_ose-1.2.0.alpha.1 db/migrate/20121024143846_create_discounts.rb
artfully_ose-1.2.0.pre.27 db/migrate/20121024143846_create_discounts.rb
artfully_ose-1.2.0.pre.26 db/migrate/20121024143846_create_discounts.rb
artfully_ose-1.2.0.pre.24 db/migrate/20121024143846_create_discounts.rb
artfully_ose-1.2.0.pre.23 db/migrate/20121024143846_create_discounts.rb
artfully_ose-1.2.0.pre.21 db/migrate/20121024143846_create_discounts.rb
artfully_ose-1.2.0.pre.20 db/migrate/20121024143846_create_discounts.rb
artfully_ose-1.2.0.pre.19 db/migrate/20121024143846_create_discounts.rb
artfully_ose-1.2.0.pre.18 db/migrate/20121024143846_create_discounts.rb
artfully_ose-1.2.0.pre.17 db/migrate/20121024143846_create_discounts.rb
artfully_ose-1.2.0.pre.16 db/migrate/20121024143846_create_discounts.rb
artfully_ose-1.2.0.pre.15 db/migrate/20121024143846_create_discounts.rb
artfully_ose-1.2.0.pre.12 db/migrate/20121024143846_create_discounts.rb