Sha256: e3c833ea6106f6c316630e2df44b385ac3dd841a17365a419cbc3057b4b4989d
Contents?: true
Size: 878 Bytes
Versions: 4
Compression:
Stored size: 878 Bytes
Contents
class Users < ActiveRecord::Migration def self.up create_table :users do |t| t.column :flash, :string t.column :recent_transactions, :string, :limit => 1024 t.column :savings_goal, :decimal, :precision => 10, :scale => 2, :default => 0 t.column :send_now, :boolean, :default => false t.column :spending_goal, :decimal, :precision => 10, :scale => 2, :default => 0 t.column :spent_this_month, :decimal, :precision => 10, :scale => 2, :default => 0 t.column :spent_today, :decimal, :precision => 10, :scale => 2, :default => 0 t.column :temporary_spending_cut, :decimal, :precision => 10, :scale => 2, :default => 0 t.column :timezone_offset, :integer, :default => 0 t.column :reset_at, :datetime t.column :send_at, :datetime t.timestamps end end def self.down drop_table :users end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
winton-sum-0.1.0 | db/migrate/001_users.rb |
winton-sum-0.1.1 | db/migrate/001_users.rb |
sum-0.1.2 | db/migrate/001_users.rb |
sum-0.1.1 | db/migrate/001_users.rb |