2018-05-07 16:47:29 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2022-11-09 17:05:21 -03:00
|
|
|
class CreateResourcesTable < ActiveRecord::Migration[5.0]
|
2017-02-06 16:11:22 +05:30
|
|
|
def change
|
|
|
|
|
create_table :resources do |t|
|
|
|
|
|
t.string :name
|
|
|
|
|
t.text :description
|
|
|
|
|
t.integer :quantity
|
|
|
|
|
t.integer :used, default: 0
|
|
|
|
|
t.references :conference
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|