]> git.openstreetmap.org Git - rails.git/commitdiff
Adjust for rails5 convention on migrations.
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 29 Nov 2017 16:03:27 +0000 (16:03 +0000)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 29 Nov 2017 16:03:27 +0000 (16:03 +0000)
db/migrate/20160822153055_create_issues_and_reports.rb
db/migrate/20160822153115_create_issue_comments.rb
db/migrate/20160822153153_add_reports_count_to_issues.rb

index a25523cb9c57b68263a37f845037670c1107966a..5a7020e6ed8178c2f28d42aea55b40de01aab12a 100644 (file)
@@ -1,6 +1,4 @@
-require "migrate"
-
-class CreateIssuesAndReports < ActiveRecord::Migration
+class CreateIssuesAndReports < ActiveRecord::Migration[5.0]
   def change
     create_table :issues do |t|
       t.string :reportable_type, :null => false
index b41dde8a71a2d848dd13c79da14d7c445b2c8cfd..725560787534b9bf0e76ed59e60dfcd7ddcf5cf2 100644 (file)
@@ -1,4 +1,4 @@
-class CreateIssueComments < ActiveRecord::Migration
+class CreateIssueComments < ActiveRecord::Migration[5.0]
   def change
     create_table :issue_comments do |t|
       t.integer :issue_id, :null => false
index a7ccd228f8f31da51c25479218d171e6aae35bf5..e435f4ff64d6b2cd595ff1db6d0679bedb0ac99b 100644 (file)
@@ -1,4 +1,4 @@
-class AddReportsCountToIssues < ActiveRecord::Migration
+class AddReportsCountToIssues < ActiveRecord::Migration[5.0]
   def change
     add_column :issues, :reports_count, :integer, :default => 0
     add_foreign_key :issues, :users, :column => :updated_by, :name => "issues_updated_by_fkey", :on_delete => :cascade