MorningPeak/db/migrate/20150616181122_create_bills.rb
Arthur Poulet b865a60bea Ticket is ready
- Ticket in user/admin sides ok (respond tested)
- Fix seeds
- Fix models
- Fix all migrations
- Add client_... controllers (bills/tickets)
2015-06-18 00:56:01 +02:00

17 lines
385 B
Ruby

class CreateBills < ActiveRecord::Migration
def change
create_table :bills do |t|
t.belongs_to :client, index: true, foreign_key: true
t.string :title, null: false
t.text :description
t.integer :amount
t.boolean :paid, default: false, null: false
t.date :emission_date
t.date :due_date
t.timestamps null: false
end
end
end