Adding rails version to new migrations

This commit is contained in:
Brenda Wallace
2018-04-02 11:04:31 +12:00
parent 700073e893
commit 2e339ce45d
3 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
class AddDatetakenToPhotos < ActiveRecord::Migration
class AddDatetakenToPhotos < ActiveRecord::Migration[4.2]
def change
add_column :photos, :date_taken, :datetime
end

View File

@@ -1,4 +1,4 @@
class RemoveShop < ActiveRecord::Migration
class RemoveShop < ActiveRecord::Migration[4.2]
def up
drop_table :order_items
drop_table :orders

View File

@@ -1,4 +1,4 @@
class SeedUsage < ActiveRecord::Migration
class SeedUsage < ActiveRecord::Migration[4.2]
def change
# # seed can be all sown, meaning there is none left
add_column(:seeds, :finished, :boolean, default: false)