mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-30 12:10:59 -05:00
Adding rails version to new migrations
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
class AddDatetakenToPhotos < ActiveRecord::Migration
|
||||
class AddDatetakenToPhotos < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :photos, :date_taken, :datetime
|
||||
end
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class RemoveShop < ActiveRecord::Migration
|
||||
class RemoveShop < ActiveRecord::Migration[4.2]
|
||||
def up
|
||||
drop_table :order_items
|
||||
drop_table :orders
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user