Skip to content

Commit

Permalink
Add Rails migration compatibility version to migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer authored and jcoyne committed Apr 25, 2017
1 parent ea4d74c commit 1abc816
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion db/migrate/20140202020201_create_searches.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
class CreateSearches < ActiveRecord::Migration
class CreateSearches < ActiveRecord::Migration[4.2]
def self.up
create_table :searches do |t|
t.binary :query_params
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20140202020202_create_bookmarks.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
class CreateBookmarks < ActiveRecord::Migration
class CreateBookmarks < ActiveRecord::Migration[4.2]
def self.up
create_table :bookmarks do |t|
t.integer :user_id, index: true, null: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
class AddPolymorphicTypeToBookmarks < ActiveRecord::Migration
class AddPolymorphicTypeToBookmarks < ActiveRecord::Migration[4.2]
def change
add_column(:bookmarks, :document_type, :string) unless Bookmark.connection.column_exists? :bookmarks, :document_type

Expand Down

0 comments on commit 1abc816

Please sign in to comment.