diff --git a/db/migrate/002_create_problems.rb b/db/migrate/002_create_problems.rb new file mode 100644 --- /dev/null +++ b/db/migrate/002_create_problems.rb @@ -0,0 +1,15 @@ +class CreateProblems < ActiveRecord::Migration + def self.up + create_table :problems do |t| + t.column :name, :string, :limit => 30 + t.column :full_name, :string + t.column :full_score, :integer + t.column :date_added, :date + t.column :available, :boolean + end + end + + def self.down + drop_table :problems + end +end