mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-16 13:14:03 +00:00
16 lines
239 B
Ruby
16 lines
239 B
Ruby
|
|
class CreateVotes < ActiveRecord::Migration
|
||
|
|
def up
|
||
|
|
create_table :votes do |t|
|
||
|
|
t.references :person
|
||
|
|
t.references :event
|
||
|
|
t.integer :rating
|
||
|
|
|
||
|
|
t.timestamps
|
||
|
|
end
|
||
|
|
end
|
||
|
|
|
||
|
|
def down
|
||
|
|
drop_table :votes
|
||
|
|
end
|
||
|
|
end
|