sideplace_app/db/migrate/20150414082918_create_credits.rb

19 lines
393 B
Ruby

class CreateCredits < ActiveRecord::Migration
def change
create_table :credits do |t|
t.references :annonce_account, index: true
t.boolean :cred
t.boolean :debt
t.integer :value
t.date :expire_after
t.text :note
t.integer :operation_id
t.string :operation_type
t.boolean :mlm
t.timestamps null: false
end
end
end