mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-15 12:44:03 +00:00
12 lines
257 B
Ruby
12 lines
257 B
Ruby
|
|
class CreateResourcesTable < ActiveRecord::Migration
|
||
|
|
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
|