Class: DropTableImportedCreds

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
db/migrate/20130525212420_drop_table_imported_creds.rb

Instance Method Summary collapse

Instance Method Details

#downObject



6
7
8
9
10
11
12
13
# File 'db/migrate/20130525212420_drop_table_imported_creds.rb', line 6

def down
  create_table :imported_creds do |t|
    t.integer   :workspace_id, :null => false, :default => 1
    t.string    :user, :limit  => 512
    t.string    :pass, :limit  => 512
    t.string    :ptype, :limit  => 16, :default => "password"
  end
end

#upObject



2
3
4
# File 'db/migrate/20130525212420_drop_table_imported_creds.rb', line 2

def up
  drop_table :imported_creds
end