Skip to content

Commit 8e1297c

Browse files
authored
Merge pull request #207 from themarshallproject/develop
Update migrations for Rails 5.
2 parents 8109d16 + 5ce6a87 commit 8e1297c

15 files changed

+75
-82
lines changed

db/migrate/20160407222051_create_users.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CreateUsers < ActiveRecord::Migration
1+
class CreateUsers < ActiveRecord::Migration[4.2]
22
def change
33
create_table :users do |t|
44
t.string :first_name

db/migrate/20160408004451_create_app_settings.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CreateAppSettings < ActiveRecord::Migration
1+
class CreateAppSettings < ActiveRecord::Migration[4.2]
22
def change
33
create_table :app_settings do |t|
44
t.string :key

db/migrate/20160412162646_create_pages.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CreatePages < ActiveRecord::Migration
1+
class CreatePages < ActiveRecord::Migration[4.2]
22
def change
33
create_table :pages do |t|
44
t.text :name

db/migrate/20160415154706_create_changes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CreateChanges < ActiveRecord::Migration
1+
class CreateChanges < ActiveRecord::Migration[4.2]
22
def change
33
create_table :changes do |t|
44
t.integer :prev_id

db/migrate/20160415154722_create_slack_integrations.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CreateSlackIntegrations < ActiveRecord::Migration
1+
class CreateSlackIntegrations < ActiveRecord::Migration[4.2]
22
def change
33
create_table :slack_integrations do |t|
44
t.string :channel

db/migrate/20160415155125_create_subscriptions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CreateSubscriptions < ActiveRecord::Migration
1+
class CreateSubscriptions < ActiveRecord::Migration[4.2]
22
def change
33
create_table :subscriptions do |t|
44
t.integer :watcher_id

db/migrate/20160415171122_create_page_snapshots.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class CreatePageSnapshots < ActiveRecord::Migration
1+
class CreatePageSnapshots < ActiveRecord::Migration[4.2]
22
def change
33
create_table :page_snapshots do |t|
44
t.integer :page_id

db/migrate/20160415181940_rename_cols_on_changes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class RenameColsOnChanges < ActiveRecord::Migration
1+
class RenameColsOnChanges < ActiveRecord::Migration[4.2]
22
def change
33
rename_column :changes, :prev_id, :before_id
44
rename_column :changes, :prev_type, :before_type

db/migrate/20160417194931_add_hash_to_page_snapshots.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class AddHashToPageSnapshots < ActiveRecord::Migration
1+
class AddHashToPageSnapshots < ActiveRecord::Migration[4.2]
22
def change
33
add_column :page_snapshots, :hash, :string
44
add_index :page_snapshots, :hash

db/migrate/20160417211247_add_html_to_page_snapshots.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class AddHtmlToPageSnapshots < ActiveRecord::Migration
1+
class AddHtmlToPageSnapshots < ActiveRecord::Migration[4.2]
22
def change
33
add_column :page_snapshots, :html, :text
44
remove_column :page_snapshots, :s3_url

0 commit comments

Comments
 (0)