Sha256: b3c23fa8abec89bbfdbef7da3edff396ebbb34d7cb446f05cd90deacf54e7ba2
Contents?: true
Size: 435 Bytes
Versions: 8
Compression:
Stored size: 435 Bytes
Contents
class CreateCheckoutStatHasUsers < ActiveRecord::Migration def self.up create_table :checkout_stat_has_users do |t| t.references :user_checkout_stat, index: true, foreign_key: true, null: false t.references :user, index: true, foreign_key: true, null: false t.integer :checkouts_count, default: 0, null: false t.timestamps end end def self.down drop_table :checkout_stat_has_users end end
Version data entries
8 entries across 8 versions & 2 rubygems