mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Removes rating desc column from cfp
This commit is contained in:
parent
a8c9c2f2d4
commit
17307736e8
4 changed files with 13 additions and 4 deletions
|
|
@ -1,5 +1,7 @@
|
|||
class CallForPapers < ActiveRecord::Base
|
||||
attr_accessible :start_date, :end_date, :hard_deadline, :description, :schedule_changes, :rating, :rating_desc, :schedule_public
|
||||
attr_accessible :start_date, :end_date, :hard_deadline,
|
||||
:description, :schedule_changes, :rating,
|
||||
:schedule_public
|
||||
belongs_to :conference
|
||||
|
||||
validates_presence_of :start_date, :end_date, :hard_deadline
|
||||
|
|
|
|||
|
|
@ -10,5 +10,4 @@
|
|||
= f.input :schedule_changes
|
||||
= f.input :schedule_public
|
||||
= f.input :rating, :hint => "Enter the number of different rating levels you want to have for voting on proposals. Enter 0 if you do not want to vote on proposals."
|
||||
= f.input :rating_desc, :label => "Rating Description", :hint => "Enter comments about voting process.", :input_html => {:value => "1 is for 'I don't like this proposal',\n2 is for 'I am ok with this proposal.',\n3 is for 'I love this proposal!'", :rows => 5, :class => "span6"}
|
||||
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
|
||||
|
|
|
|||
9
db/migrate/20140514140013_remove_rating_desc_from_cfp.rb
Normal file
9
db/migrate/20140514140013_remove_rating_desc_from_cfp.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class RemoveRatingDescFromCfp < ActiveRecord::Migration
|
||||
def up
|
||||
remove_column :call_for_papers, :rating_desc
|
||||
end
|
||||
|
||||
def down
|
||||
add_column :call_for_papers, :rating_desc, :text
|
||||
end
|
||||
end
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20140414131028) do
|
||||
ActiveRecord::Schema.define(version: 20140514140013) do
|
||||
|
||||
create_table "answers", force: true do |t|
|
||||
t.string "title"
|
||||
|
|
@ -29,7 +29,6 @@ ActiveRecord::Schema.define(version: 20140414131028) do
|
|||
t.datetime "updated_at"
|
||||
t.boolean "schedule_changes", default: false
|
||||
t.integer "rating", default: 3
|
||||
t.text "rating_desc"
|
||||
t.boolean "schedule_public"
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue