This repository has been archived on 2021-11-24. You can view files and clone it, but cannot push or open issues or pull requests.
phone_app/db/migrate/20181120100856_create_timer_watchers.rb
2021-08-23 10:26:02 +02:00

18 lines
458 B
Ruby

class CreateTimerWatchers < ActiveRecord::Migration[6.0]
def change
create_table :timer_watchers do |t|
t.string :element_type
t.integer :element_id
t.string :key
t.references :admin, index: true, foreign_key: true
t.references :p_customer
t.string :admin_space
t.datetime :end_at
t.integer :time_ok
t.boolean :write_action, :defaut => false
t.timestamps null: false
end
end
end