Add Rails release to ActiveRecord::Migration

This commit is contained in:
Patrick Gansterer 2020-08-07 01:14:14 +02:00
parent 44a198c7bc
commit 74531f90c7
108 changed files with 108 additions and 108 deletions

View file

@ -1,4 +1,4 @@
class CreateDocuments < ActiveRecord::Migration
class CreateDocuments < ActiveRecord::Migration[4.2]
def self.up
create_table :documents do |t|
t.string :name

View file

@ -1,4 +1,4 @@
class AddParentToDocument < ActiveRecord::Migration
class AddParentToDocument < ActiveRecord::Migration[4.2]
def change
add_reference :documents, :parent, index: true
end