Sha256: ba8278faec0df936a612c7d5b034223d37741e743d21804f0f7b9350497893c7
Contents?: true
Size: 495 Bytes
Versions: 423
Compression:
Stored size: 495 Bytes
Contents
class CreateCheckoutStatHasUsers < ActiveRecord::Migration def self.up create_table :checkout_stat_has_users do |t| t.integer :user_checkout_stat_id, :null => false t.integer :user_id, :null => false t.integer :checkouts_count, :default => 0, :null => false t.timestamps end add_index :checkout_stat_has_users, :user_checkout_stat_id add_index :checkout_stat_has_users, :user_id end def self.down drop_table :checkout_stat_has_users end end
Version data entries
423 entries across 416 versions & 12 rubygems