Sha256: 89a6bd95794c2c2bb7739ee88d305bc6964096c768ce4662ab8eb934e321ef77
Contents?: true
Size: 488 Bytes
Versions: 53
Compression:
Stored size: 488 Bytes
Contents
class CreateCheckoutStatHasUsers < ActiveRecord::Migration[4.2] 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
53 entries across 53 versions & 9 rubygems