Sha256: 7908f525758685f1d47f8f7c084050cbe1d399bae3009d7f821dbc8dc0f48a03
Contents?: true
Size: 606 Bytes
Versions: 1
Compression:
Stored size: 606 Bytes
Contents
class CreateDiscounts < ActiveRecord::Migration def self.up create_table :shop_discounts do |t| t.string :name t.string :code t.decimal :amount t.datetime :starts_at t.datetime :finishes_at t.integer :created_by t.integer :updated_by t.timestamps end create_table :shop_discountables do |t| t.integer :discount_id t.integer :discounted_id t.string :discounted_type end end def self.down remove_table :shop_discounts remove_table :shop_discounteds end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
radiant-shop-extension-0.11.6 | db/migrate/20101010071143_create_discounts.rb |