change plugins.private_flag to public_flag
This commit is contained in:
8
db/migrate/20141016020624_add_public_flag_to_plugins.rb
Normal file
8
db/migrate/20141016020624_add_public_flag_to_plugins.rb
Normal file
@ -0,0 +1,8 @@
|
||||
class AddPublicFlagToPlugins < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :plugins, :public_flag, :boolean, default: false
|
||||
# set existing public_flag values
|
||||
execute("UPDATE plugins SET public_flag = true WHERE private_flag = false")
|
||||
end
|
||||
end
|
||||
|
@ -0,0 +1,6 @@
|
||||
class RemovePrivateFlagFromPlugins < ActiveRecord::Migration
|
||||
def change
|
||||
remove_column :plugins, :private_flag
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user