mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
15 lines
239 B
Ruby
15 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
|