Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion db/migrate/20110819224757_devise_create_users.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class DeviseCreateUsers < ActiveRecord::Migration
class DeviseCreateUsers < ActiveRecord::Migration[4.2]
def self.up
create_table(:users) do |t|
## Database authenticatable
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20110820005833_create_test_cases.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateTestCases < ActiveRecord::Migration
class CreateTestCases < ActiveRecord::Migration[4.2]
def self.up
create_table :test_cases do |t|
t.text :input
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20110820010205_create_problems.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateProblems < ActiveRecord::Migration
class CreateProblems < ActiveRecord::Migration[4.2]
def self.up
create_table :problems do |t|
t.string :title, limit: 255
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20110820013719_create_submissions.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateSubmissions < ActiveRecord::Migration
class CreateSubmissions < ActiveRecord::Migration[4.2]
def self.up
create_table :submissions do |t|
t.text :source
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20110904033519_create_contest_relations.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateContestRelations < ActiveRecord::Migration
class CreateContestRelations < ActiveRecord::Migration[4.2]
def self.up
create_table :contest_relations do |t|
t.integer :user_id
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20110904033742_create_contests.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateContests < ActiveRecord::Migration
class CreateContests < ActiveRecord::Migration[4.2]
def self.up
create_table :contests do |t|
t.string :title, limit: 255
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateContestsProblemsTable < ActiveRecord::Migration
class CreateContestsProblemsTable < ActiveRecord::Migration[4.2]
def self.up
create_table :contests_problems, id: false do |t|
t.integer :contest_id
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20110924030742_create_groups.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateGroups < ActiveRecord::Migration
class CreateGroups < ActiveRecord::Migration[4.2]
def self.up
create_table :groups do |t|
t.string :name, limit: 255
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20110924035337_create_group_user_table.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateGroupUserTable < ActiveRecord::Migration
class CreateGroupUserTable < ActiveRecord::Migration[4.2]
def self.up
create_table :groups_users, id: false do |t|
t.integer :group_id
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20110925021620_create_group_problem_table.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateGroupProblemTable < ActiveRecord::Migration
class CreateGroupProblemTable < ActiveRecord::Migration[4.2]
def self.up
create_table :groups_problems, id: false do |t|
t.integer :group_id
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20111002021523_create_contest_group_table.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateContestGroupTable < ActiveRecord::Migration
class CreateContestGroupTable < ActiveRecord::Migration[4.2]
def self.up
create_table :contests_groups, id: false do |t|
t.integer :contest_id
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddJudgeOutputToSubmissions < ActiveRecord::Migration
class AddJudgeOutputToSubmissions < ActiveRecord::Migration[4.2]
def self.up
add_column :submissions, :judge_output, :text
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20111206102437_add_brownie_points_to_users.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddBrowniePointsToUsers < ActiveRecord::Migration
class AddBrowniePointsToUsers < ActiveRecord::Migration[4.2]
def self.up
add_column :users, :brownie_points, :integer, default: 0
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20120109132817_add_evaluator_to_problem.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddEvaluatorToProblem < ActiveRecord::Migration
class AddEvaluatorToProblem < ActiveRecord::Migration[4.2]
def self.up
add_column :problems, :evaluator, :text
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20120111090946_add_name_to_user.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddNameToUser < ActiveRecord::Migration
class AddNameToUser < ActiveRecord::Migration[4.2]
def self.up
add_column :users, :name, :string, limit: 255
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateContestsMaxScoreSubmissionsView < ActiveRecord::Migration
class CreateContestsMaxScoreSubmissionsView < ActiveRecord::Migration[4.2]
def self.up
case ActiveRecord::Base.connection.adapter_name
when "SQLite"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateContestsLatestSubmissionsView < ActiveRecord::Migration
class CreateContestsLatestSubmissionsView < ActiveRecord::Migration[4.2]
def self.up
case ActiveRecord::Base.connection.adapter_name
when "SQLite"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateContestsMaxScoreScoreboardView < ActiveRecord::Migration
class CreateContestsMaxScoreScoreboardView < ActiveRecord::Migration[4.2]
def self.up
case ActiveRecord::Base.connection.adapter_name
when "SQLite"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateContestsLatestScoreboardView < ActiveRecord::Migration
class CreateContestsLatestScoreboardView < ActiveRecord::Migration[4.2]
def self.up
case ActiveRecord::Base.connection.adapter_name
when "SQLite"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateContestsCountSubmissionsView < ActiveRecord::Migration
class CreateContestsCountSubmissionsView < ActiveRecord::Migration[4.2]
def self.up
execute "CREATE VIEW contests_count_submissions AS SELECT contest_relations.contest_id, submissions.user_id, submissions.problem_id, COUNT(*) AS count FROM contests JOIN contest_relations ON contests.id = contest_relations.contest_id JOIN contests_problems ON contests_problems.contest_id = contests.id JOIN submissions ON contest_relations.user_id = submissions.user_id AND submissions.problem_id = contests_problems.problem_id WHERE submissions.created_at BETWEEN contests.start_time AND contests.end_time GROUP BY contest_relations.contest_id, submissions.user_id, submissions.problem_id;"
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20120117133515_add_indexes_id_fields.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddIndexesIdFields < ActiveRecord::Migration
class AddIndexesIdFields < ActiveRecord::Migration[4.2]
# indexes designed to allow fast table joins, eg. when
# - getting users competing in a contest
# - getting the contests a user has competed in
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20120119025544_create_problem_sets.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateProblemSets < ActiveRecord::Migration
class CreateProblemSets < ActiveRecord::Migration[4.2]
def self.up
create_table :problem_sets do |t|
t.string :title, limit: 255
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class RemoveProblemsContestsGroups < ActiveRecord::Migration
class RemoveProblemsContestsGroups < ActiveRecord::Migration[4.2]
def self.up
drop_table :contests_problems
drop_table :groups_problems
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20120122061329_create_roles.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateRoles < ActiveRecord::Migration
class CreateRoles < ActiveRecord::Migration[4.2]
def self.up
create_table :roles do |t|
t.string :name, limit: 255
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20120127063021_add_username_to_users.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddUsernameToUsers < ActiveRecord::Migration
class AddUsernameToUsers < ActiveRecord::Migration[4.2]
def self.up
add_column :users, :username, :string, limit: 255
add_column :users, :can_change_username, :boolean, default: true, null: false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20120128000525_create_settings.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateSettings < ActiveRecord::Migration
class CreateSettings < ActiveRecord::Migration[4.2]
def self.up
create_table :settings do |t|
t.string :key, limit: 255
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20120128235138_create_evaluators.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateEvaluators < ActiveRecord::Migration
class CreateEvaluators < ActiveRecord::Migration[4.2]
def self.up
create_table :evaluators do |t|
t.string :name, limit: 255, unique: true, null: false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20120131100212_add_user_to_group.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddUserToGroup < ActiveRecord::Migration
class AddUserToGroup < ActiveRecord::Migration[4.2]
def self.up
add_column :groups, :user_id, :integer
execute "UPDATE groups SET user_id = 35;"
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20120201080849_add_title_index_to_problem.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddTitleIndexToProblem < ActiveRecord::Migration
class AddTitleIndexToProblem < ActiveRecord::Migration[4.2]
def self.up
case ActiveRecord::Base.connection.adapter_name
when "SQLite"
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20120201113029_add_sessions_table.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddSessionsTable < ActiveRecord::Migration
class AddSessionsTable < ActiveRecord::Migration[4.2]
def self.up
create_table :sessions do |t|
t.string :session_id, limit: 255, null: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddCreatedAtIndexToSessions < ActiveRecord::Migration
class AddCreatedAtIndexToSessions < ActiveRecord::Migration[4.2]
def self.up
add_index :sessions, :created_at
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20120208061444_add_avatar_to_user.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddAvatarToUser < ActiveRecord::Migration
class AddAvatarToUser < ActiveRecord::Migration[4.2]
def self.up
add_column :users, :avatar, :string, limit: 255
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20120210235859_create_test_sets.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateTestSets < ActiveRecord::Migration
class CreateTestSets < ActiveRecord::Migration[4.2]
def up
create_table :test_sets do |t|
t.integer :problem_id
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20120610045635_add_debug_to_submission.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddDebugToSubmission < ActiveRecord::Migration
class AddDebugToSubmission < ActiveRecord::Migration[4.2]
def change
add_column :submissions, :debug_output, :text
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20120805020042_add_confirmable_to_users.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddConfirmableToUsers < ActiveRecord::Migration
class AddConfirmableToUsers < ActiveRecord::Migration[4.2]
def change
add_column :users, :confirmation_token, :string, limit: 255
add_column :users, :confirmed_at, :datetime
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class MakeExistingEmailsUnconfirmedInUsers < ActiveRecord::Migration
class MakeExistingEmailsUnconfirmedInUsers < ActiveRecord::Migration[4.2]
def up
User.find_each do |user|
if user[:unconfirmed_email].nil?
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class SendConfirmationInstructionsToAllUsers < ActiveRecord::Migration
class SendConfirmationInstructionsToAllUsers < ActiveRecord::Migration[4.2]
def up
User.find_each do |user| # for each user without confirmation instructions, send them
user.send_confirmation_instructions if user.confirmation_sent_at.nil?
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class SetNameOfTestSetsAndTestCases < ActiveRecord::Migration
class SetNameOfTestSetsAndTestCases < ActiveRecord::Migration[4.2]
def up
# remove nulls from the name field
TestSet.find_each do |set|
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20120806212034_rename_user_to_owner.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class RenameUserToOwner < ActiveRecord::Migration
class RenameUserToOwner < ActiveRecord::Migration[4.2]
def change
rename_column :contests, :user_id, :owner_id
rename_column :evaluators, :user_id, :owner_id
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddEndTimeToContestRelations < ActiveRecord::Migration
class AddEndTimeToContestRelations < ActiveRecord::Migration[4.2]
def change
add_column :contest_relations, :finish_at, :datetime # will be updated by caching
Contest.find_each do |contest|
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20120807042326_create_contest_scores.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateContestScores < ActiveRecord::Migration
class CreateContestScores < ActiveRecord::Migration[4.2]
def up
# table to cache submission score for each problem/user (of all submissions that have been created)
# however, this score may differ from actual submission score if it gets rejudged after a contest has been sealed
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20120810041325_add_results_final_to_contest.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddResultsFinalToContest < ActiveRecord::Migration
class AddResultsFinalToContest < ActiveRecord::Migration[4.2]
def up
add_column :contests, :finalized_at, :datetime, default: nil

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddInputOutputToSubmissions < ActiveRecord::Migration
class AddInputOutputToSubmissions < ActiveRecord::Migration[4.2]
def up
add_column :submissions, :input, :string, limit: 255
add_column :submissions, :output, :string, limit: 255
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ConvertGroupsUsersToMemberships < ActiveRecord::Migration
class ConvertGroupsUsersToMemberships < ActiveRecord::Migration[4.2]
def up
rename_table :groups_users, :memberships
add_column :memberships, :id, :primary_key
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddVisibilityAndMembershipToGroups < ActiveRecord::Migration
class AddVisibilityAndMembershipToGroups < ActiveRecord::Migration[4.2]
def change
add_column :groups, :visibility, :integer, null: false, default: 0
add_column :groups, :membership, :integer, null: false, default: 0
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20130926080926_change_membership_table_name.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ChangeMembershipTableName < ActiveRecord::Migration
class ChangeMembershipTableName < ActiveRecord::Migration[4.2]
def change
rename_table :memberships, :group_memberships
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20130926105411_create_requests.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateRequests < ActiveRecord::Migration
class CreateRequests < ActiveRecord::Migration[4.2]
def change
create_table :requests do |t|
t.references :requester
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20130928133936_add_last_seen_at_to_users.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddLastSeenAtToUsers < ActiveRecord::Migration
class AddLastSeenAtToUsers < ActiveRecord::Migration[4.2]
def up
add_column :users, :last_seen_at, :timestamp

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddCreatedAtToGroupMemberships < ActiveRecord::Migration
class AddCreatedAtToGroupMemberships < ActiveRecord::Migration[4.2]
def up
add_column :group_memberships, :created_at, :timestamp

Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20131001083843_create_file_attachments.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateFileAttachments < ActiveRecord::Migration
class CreateFileAttachments < ActiveRecord::Migration[4.2]
def change
create_table :file_attachments do |t|
t.string :name, limit: 255
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddFilepathToGroupFileAttachments < ActiveRecord::Migration
class AddFilepathToGroupFileAttachments < ActiveRecord::Migration[4.2]
def change
add_column :group_file_attachments, :filepath, :string, limit: 255

Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20131007002316_create_test_case_relations.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateTestCaseRelations < ActiveRecord::Migration
class CreateTestCaseRelations < ActiveRecord::Migration[4.2]
def change
create_table :test_case_relations do |t|
t.integer :test_case_id
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ConvertTestCaseAssociations < ActiveRecord::Migration
class ConvertTestCaseAssociations < ActiveRecord::Migration[4.2]
def up
execute "INSERT INTO test_case_relations (test_set_id, test_case_id, created_at, updated_at) (SELECT test_set_id, id, created_at, updated_at FROM test_cases);"

Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20131013045616_create_languages.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateLanguages < ActiveRecord::Migration
class CreateLanguages < ActiveRecord::Migration[4.2]
def change
create_table :languages do |t|
t.string :name, limit: 255
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20131013050536_add_language_id_to_submission.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddLanguageIdToSubmission < ActiveRecord::Migration
class AddLanguageIdToSubmission < ActiveRecord::Migration[4.2]
def up
add_column :submissions, :language_id, :integer
rename_column :submissions, :language, :old_language
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20131112032835_change_languages.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ChangeLanguages < ActiveRecord::Migration
class ChangeLanguages < ActiveRecord::Migration[4.2]
def change
rename_column :languages, :is_interpreted, :interpreted
add_column :languages, :flags, :string, limit: 255
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20131117055333_add_extension_to_language.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddExtensionToLanguage < ActiveRecord::Migration
class AddExtensionToLanguage < ActiveRecord::Migration[4.2]
def change
add_column :languages, :extension, :string, limit: 255
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddNewJudgeColumnsToSubmissions < ActiveRecord::Migration
class AddNewJudgeColumnsToSubmissions < ActiveRecord::Migration[4.2]
def change
add_column :submissions, :judge_log, :text
add_column :submissions, :isolate_score, :integer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddIndexesToTestCaseRelations < ActiveRecord::Migration
class AddIndexesToTestCaseRelations < ActiveRecord::Migration[4.2]
def change
add_index :test_case_relations, :test_case_id
add_index :test_case_relations, :test_set_id
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class IsolateJudgeToMainScoreField < ActiveRecord::Migration
class IsolateJudgeToMainScoreField < ActiveRecord::Migration[4.2]
def up
execute "UPDATE submissions SET score = isolate_score;"

Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20131205080753_add_job_to_submissions.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddJobToSubmissions < ActiveRecord::Migration
class AddJobToSubmissions < ActiveRecord::Migration[4.2]
def change
add_column :submissions, :job, :string, limit: 255
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20131205201359_add_type_to_test_set.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddTypeToTestSet < ActiveRecord::Migration
class AddTypeToTestSet < ActiveRecord::Migration[4.2]
def up
add_column :test_sets, :visibility, :integer, limit: 1, null: false, default: 2
add_column :test_cases, :problem_id, :integer
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20131206074948_name_all_test_sets_and_cases.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "set"

class NameAllTestSetsAndCases < ActiveRecord::Migration
class NameAllTestSetsAndCases < ActiveRecord::Migration[4.2]
def up
Problem.find_each do |problem|
name_uniquely(problem.test_sets)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ChangeEnumerationOnTestSets < ActiveRecord::Migration
class ChangeEnumerationOnTestSets < ActiveRecord::Migration[4.2]
def up
change_column :test_sets, :visibility, :integer, limit: 1, default: 0
execute "UPDATE test_sets SET visibility = 3 WHERE visibility = 0" # sample
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ConvertDummyTestSetsToSamples < ActiveRecord::Migration
class ConvertDummyTestSetsToSamples < ActiveRecord::Migration[4.2]
def up
# mainly for the COCI problems
TestSet.where("name LIKE '%dummy%'").find_each do |set|
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20131208014408_add_language_group_model.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddLanguageGroupModel < ActiveRecord::Migration
class AddLanguageGroupModel < ActiveRecord::Migration[4.2]
def change
create_table :language_groups do |t|
t.string :identifier, limit: 255
Expand Down
Loading