Class: CreateKeys
- Inherits:
-
Debci::DB::LEGACY_MIGRATION
- Object
- CreateKeys
- Defined in:
- lib/debci/db/migrations/201803101326_create_keys.rb
Instance Method Summary collapse
Instance Method Details
#down ⇒ Object
10 11 12 |
# File 'lib/debci/db/migrations/201803101326_create_keys.rb', line 10 def down drop_table :keys end |
#up ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/debci/db/migrations/201803101326_create_keys.rb', line 2 def up create_table(:keys) do |t| t.(null: false) t.string :user, limit: 256, null: false t.string :encrypted_key, limit: 40, null: false, index: true end end |