Class: AddCredsTable
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddCredsTable
- Defined in:
- db/migrate/026_add_creds_table.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
15 16 17 |
# File 'db/migrate/026_add_creds_table.rb', line 15 def self.down drop_table :creds end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'db/migrate/026_add_creds_table.rb', line 2 def self.up create_table :creds do |t| t.integer :service_id, :null => false t. t.string :user, :limit => 2048 t.string :pass, :limit => 4096 t.boolean :active, :default => true t.string :proof, :limit => 4096 t.string :ptype, :limit => 16 t.integer :source_id t.string :source_type end end |