mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-09-20 21:15:13 -04:00
Adding rails version to new migrations
This commit is contained in:
1 parent
700073e893
commit
2e339ce45d
3 files changed
+3
-3
No files matched your search
@@ -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