mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-10 01:24:19 +01:00
Small fix to fi locale and whitespace changes to migrate script
This commit is contained in:
parent
589b58c046
commit
83dd49a52f
2 changed files with 3 additions and 4 deletions
|
|
@ -1,12 +1,12 @@
|
|||
class AddUserId < ActiveRecord::Migration[5.2]
|
||||
|
||||
|
||||
class Project < ActiveRecord::Base; end
|
||||
class Context < ActiveRecord::Base; end
|
||||
class Todo < ActiveRecord::Base; end
|
||||
|
||||
|
||||
def self.up
|
||||
add_column :contexts, :user_id, :integer, :default => 1
|
||||
add_column :projects, :user_id, :integer, :default => 1
|
||||
add_column :projects, :user_id, :integer, :default => 1
|
||||
add_column :todos, :user_id, :integer, :default => 1
|
||||
Context.all.each { |context| context.user_id = 1 }
|
||||
Project.all.each { |project| project.user_id = 1 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue