parent
f0d6bb7fae
commit
f4b4bf40de
@ -0,0 +1,5 @@
|
|||||||
|
class AddCoulumnShowModeToOrganizations < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :organizations, :show_mode, :integer, :default => 0
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,12 @@
|
|||||||
|
class SetShowModeForOrganizations < ActiveRecord::Migration
|
||||||
|
def up
|
||||||
|
Organization.transaction do
|
||||||
|
Organization.all.each do |org|
|
||||||
|
org.update_attribute(:show_mode, 0)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in new issue