Small fix to fi locale and whitespace changes to migrate script

This commit is contained in:
Jyri-Petteri Paloposki 2021-01-06 15:33:13 +02:00
parent 589b58c046
commit 83dd49a52f
2 changed files with 3 additions and 4 deletions

View file

@ -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 }