Sha256: 75d54a507a7e994b3d1fc8762c22ff5af8bee4e6da9ee6867204643339262106
Contents?: true
Size: 585 Bytes
Versions: 2
Compression:
Stored size: 585 Bytes
Contents
class CreateAccountTransactions < ActiveRecord::Migration def self.up create_table :account_transactions, :force => true do |t| t.column :subscription_id, :integer, :null => false t.column :success, :boolean, :null => false t.column :billing_key, :string, :null => false t.column :amount_cents, :integer, :null => false t.column :message, :string, :null => true t.column :created_at, :timestamp, :null => false end add_index :account_transactions, :subscription_id end def self.down drop_table :account_transactions end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
freemium-0.0.2 | lib/generators/active_record/templates/migrations/account_transactions.rb |
freemium-0.0.1 | lib/generators/active_record/templates/migrations/account_transactions.rb |