b865a60bea
- Ticket in user/admin sides ok (respond tested) - Fix seeds - Fix models - Fix all migrations - Add client_... controllers (bills/tickets)
16 lines
363 B
Ruby
16 lines
363 B
Ruby
class CreateTickets < ActiveRecord::Migration
|
|
def change
|
|
create_table :tickets do |t|
|
|
|
|
t.references :creator, polymorphic: true, index: true
|
|
t.belongs_to :ticket, index: true, foreign_key: true
|
|
|
|
t.string :title
|
|
t.text :description
|
|
t.string :state, default: "open", null: false
|
|
|
|
t.timestamps null: false
|
|
end
|
|
end
|
|
end
|