intra_app/db/migrate/20190520102905_create_i_tasks.rb
Nicolas Bally 3075c2ab63 suite
2019-05-20 22:35:16 +02:00

17 lines
426 B
Ruby

class CreateITasks < ActiveRecord::Migration
def change
create_table :i_tasks do |t|
t.references :i_website, index: true, foreign_key: true
t.string :name
t.text :descritpion
t.date :end_at
t.integer :image_file_id
t.boolean :done, :default => false
t.integer :minutes
t.references :admin, index: true, foreign_key: true
t.timestamps null: false
end
end
end