Skip to content
This repository was archived by the owner on Jan 8, 2022. It is now read-only.

Commit 5883ebe

Browse files
committed
Use versioned migrations
1 parent bca29cc commit 5883ebe

15 files changed

+15
-15
lines changed

db/migrate/20120502214248_devise_create_users.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class DeviseCreateUsers < ActiveRecord::Migration
1+
class DeviseCreateUsers < ActiveRecord::Migration[4.2]
22
def change
33
create_table(:users) do |t|
44
## Database authenticatable

db/migrate/20120502214252_create_searches.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- encoding : utf-8 -*-
22

3-
class CreateSearches < ActiveRecord::Migration
3+
class CreateSearches < ActiveRecord::Migration[4.2]
44
def self.up
55
create_table :searches do |t|
66
t.text :query_params

db/migrate/20120502214253_create_bookmarks.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- encoding : utf-8 -*-
22

3-
class CreateBookmarks < ActiveRecord::Migration
3+
class CreateBookmarks < ActiveRecord::Migration[4.2]
44
def self.up
55
create_table :bookmarks do |t|
66
t.integer :user_id, null: false

db/migrate/20120502214254_remove_editable_fields_from_bookmarks.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- encoding : utf-8 -*-
22

3-
class RemoveEditableFieldsFromBookmarks < ActiveRecord::Migration
3+
class RemoveEditableFieldsFromBookmarks < ActiveRecord::Migration[4.2]
44
def self.up
55
remove_column :bookmarks, :notes
66
remove_column :bookmarks, :url

db/migrate/20120502214255_add_user_types_to_bookmarks_searches.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- encoding : utf-8 -*-
22

3-
class AddUserTypesToBookmarksSearches < ActiveRecord::Migration
3+
class AddUserTypesToBookmarksSearches < ActiveRecord::Migration[4.2]
44
def self.up
55
add_column :searches, :user_type, :string
66
add_column :bookmarks, :user_type, :string

db/migrate/20120502214405_create_superusers.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CreateSuperusers < ActiveRecord::Migration
1+
class CreateSuperusers < ActiveRecord::Migration[4.2]
22
def self.up
33
create_table :superusers do |t|
44
t.integer :user_id, null: false

db/migrate/20120523232755_create_hydrus_object_files.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CreateHydrusObjectFiles < ActiveRecord::Migration
1+
class CreateHydrusObjectFiles < ActiveRecord::Migration[4.2]
22
def change
33
create_table(:object_files) do |t|
44
t.string :pid, null: false, default: ''

db/migrate/20120524183252_add_label_to_file_object.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class AddLabelToFileObject < ActiveRecord::Migration
1+
class AddLabelToFileObject < ActiveRecord::Migration[4.2]
22
def change
33
add_column :object_files, :label, :string, default: ''
44
end

db/migrate/20120524235102_add_weight_to_object_file.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class AddWeightToObjectFile < ActiveRecord::Migration
1+
class AddWeightToObjectFile < ActiveRecord::Migration[4.2]
22
def change
33
add_column :object_files, :weight, :integer, default: 0
44
end

db/migrate/20130213202100_add_hide_to_object_file.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class AddHideToObjectFile < ActiveRecord::Migration
1+
class AddHideToObjectFile < ActiveRecord::Migration[4.2]
22
def change
33
add_column(:object_files, :hide, :boolean, default: false)
44
end

db/migrate/20130503213910_create_user_roles.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CreateUserRoles < ActiveRecord::Migration
1+
class CreateUserRoles < ActiveRecord::Migration[4.2]
22
def change
33
create_table :user_roles do |t|
44
t.string :role, null: false, default: ''

db/migrate/20130625185407_add_amy_hodge.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class AddAmyHodge < ActiveRecord::Migration
1+
class AddAmyHodge < ActiveRecord::Migration[4.2]
22
def change
33
admins = UserRole.where(role: 'administrators').first
44
admins.users = 'bess,geisler,hfrost,jdeering,lmcrae,petucket,snydman,tcramer,tonyn,jvine,amyhodge'

db/migrate/20130830222455_add_r_metz_to_admin.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class AddRMetzToAdmin < ActiveRecord::Migration
1+
class AddRMetzToAdmin < ActiveRecord::Migration[4.2]
22
def change
33
admins = UserRole.where(role: 'administrators').first
44
admins.users = 'bess,geisler,hfrost,jdeering,lmcrae,petucket,snydman,tcramer,tonyn,jvine,amyhodge,rmetz'

db/migrate/20131023220940_convert_user_roles_column_to_text.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class ConvertUserRolesColumnToText < ActiveRecord::Migration
1+
class ConvertUserRolesColumnToText < ActiveRecord::Migration[4.2]
22
def up
33
change_column :user_roles, :users, :text
44
end

spec/spec_helper.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
# Checks for pending migration and applies them before tests are run.
4141
# If you are not using ActiveRecord, you can remove this line.
42-
ActiveRecord::Migration.maintain_test_schema!
42+
ActiveRecord::Migration[4.2].maintain_test_schema!
4343

4444
Warden.test_mode!
4545

0 commit comments

Comments
 (0)