Add difficulty levels

This commit is contained in:
Stella 2014-02-23 16:09:09 +02:00
parent 4356616566
commit 5b35e25ecd
15 changed files with 119 additions and 3 deletions

View file

@ -0,0 +1,12 @@
class CreateDifficultyLevels < ActiveRecord::Migration
def change
create_table :difficulty_levels do |t|
t.references :conference
t.string :title
t.text :description
t.string :color, :default => "#ffffff"
t.timestamps
end
end
end

View file

@ -0,0 +1,5 @@
class AddUseDifficultyLevelsToConference < ActiveRecord::Migration
def change
add_column :conferences, :use_difficulty_levels, :boolean, :default => false
end
end

View file

@ -0,0 +1,5 @@
class AddDifficultyLevelIdToEvents < ActiveRecord::Migration
def change
add_column :events, :difficulty_level_id, :integer
end
end