!5 浏览代码fix(view): 初始化项目时执行迁移, rails版本问题

* fix(view): 初始化项目时执行迁移, rails版本问题
This commit is contained in:
yangfeng 2019-12-04 23:50:59 +08:00 committed by Zoker
parent eefdd24318
commit 772b981315
6 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
class CreateTasks < ActiveRecord::Migration class CreateTasks < ActiveRecord::Migration[5.0]
def change def change
create_table :tasks do |t| create_table :tasks do |t|
t.text :title t.text :title

View File

@ -1,4 +1,4 @@
class CreateLists < ActiveRecord::Migration class CreateLists < ActiveRecord::Migration[5.0]
def change def change
create_table :lists do |t| create_table :lists do |t|
t.text :title t.text :title

View File

@ -1,4 +1,4 @@
class CreatePlans < ActiveRecord::Migration class CreatePlans < ActiveRecord::Migration[5.0]
def change def change
create_table :plans do |t| create_table :plans do |t|
t.text :title t.text :title

View File

@ -1,4 +1,4 @@
class AddColorTagToPlan < ActiveRecord::Migration class AddColorTagToPlan < ActiveRecord::Migration[5.0]
def change def change
add_column :plans, :color_tag, :integer , :default => 1 add_column :plans, :color_tag, :integer , :default => 1
end end

View File

@ -1,4 +1,4 @@
class AddPlanIdToTasks < ActiveRecord::Migration class AddPlanIdToTasks < ActiveRecord::Migration[5.0]
def change def change
add_column :tasks, :plan_id, :integer add_column :tasks, :plan_id, :integer
end end

View File

@ -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 # Note: You can't use change, as User.update_all will fail in the down migration
def up def up
add_column :users, :confirmation_token, :string add_column :users, :confirmation_token, :string