!5 浏览代码fix(view): 初始化项目时执行迁移, rails版本问题
* fix(view): 初始化项目时执行迁移, rails版本问题
This commit is contained in:
parent
eefdd24318
commit
772b981315
|
@ -1,4 +1,4 @@
|
|||
class CreateTasks < ActiveRecord::Migration
|
||||
class CreateTasks < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :tasks do |t|
|
||||
t.text :title
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateLists < ActiveRecord::Migration
|
||||
class CreateLists < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :lists do |t|
|
||||
t.text :title
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreatePlans < ActiveRecord::Migration
|
||||
class CreatePlans < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :plans do |t|
|
||||
t.text :title
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddColorTagToPlan < ActiveRecord::Migration
|
||||
class AddColorTagToPlan < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
add_column :plans, :color_tag, :integer , :default => 1
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddPlanIdToTasks < ActiveRecord::Migration
|
||||
class AddPlanIdToTasks < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
add_column :tasks, :plan_id, :integer
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddConfirmableToDevise < ActiveRecord::Migration
|
||||
class AddConfirmableToDevise < ActiveRecord::Migration[5.0]
|
||||
# Note: You can't use change, as User.update_all will fail in the down migration
|
||||
def up
|
||||
add_column :users, :confirmation_token, :string
|
||||
|
|
Loading…
Reference in New Issue