Class: CreateDropboxstrgfields
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateDropboxstrgfields
- Defined in:
- lib/templates/create_dropboxstrgfields.rb
Instance Method Summary collapse
Instance Method Details
#down ⇒ Object
9 10 11 12 13 14 |
# File 'lib/templates/create_dropboxstrgfields.rb', line 9 def down remove_column :cloudstrgusers, :dropbox_akey remove_column :cloudstrgusers, :dropbox_asecret Cloudstrglist.delete_all :plugin_name => "dropbox" end |
#up ⇒ Object
2 3 4 5 6 7 |
# File 'lib/templates/create_dropboxstrgfields.rb', line 2 def up add_column :cloudstrgusers, :dropbox_akey, :string add_column :cloudstrgusers, :dropbox_asecret, :string Cloudstrglist.create :plugin_name => "dropbox" end |