star voting system for proposals
This commit is contained in:
parent
2314d943e1
commit
834362491e
17 changed files with 157 additions and 3 deletions
15
db/migrate/20130815085420_create_votes.rb
Normal file
15
db/migrate/20130815085420_create_votes.rb
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
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
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
class AddRatingToCallForPapers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :call_for_papers, :rating, :integer
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
class AddRatingDescToCallForPapers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :call_for_papers, :rating_desc, :text
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue