Skip to content

Commit

Permalink
!5 浏览代码fix(view): 初始化项目时执行迁移, rails版本问题
Browse files Browse the repository at this point in the history
* fix(view): 初始化项目时执行迁移, rails版本问题
  • Loading branch information
Pricccvtqu4tt committed Dec 15, 2022
1 parent e94ebac commit 7fbcbfc
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion db/migrate/20150923142819_create_tasks.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateTasks < ActiveRecord::Migration
class CreateTasks < ActiveRecord::Migration[5.0]
def change
create_table :tasks do |t|
t.text :title
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20150923155245_create_lists.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateLists < ActiveRecord::Migration
class CreateLists < ActiveRecord::Migration[5.0]
def change
create_table :lists do |t|
t.text :title
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20150924024921_create_plans.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreatePlans < ActiveRecord::Migration
class CreatePlans < ActiveRecord::Migration[5.0]
def change
create_table :plans do |t|
t.text :title
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20150925104424_add_color_tag_to_plan.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20151012090323_add_plan_id_to_tasks.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddPlanIdToTasks < ActiveRecord::Migration
class AddPlanIdToTasks < ActiveRecord::Migration[5.0]
def change
add_column :tasks, :plan_id, :integer
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160723072506_add_confirmable_to_devise.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 7fbcbfc

Please sign in to comment.