Class: CreateUserQueues
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateUserQueues
- Defined in:
- lib/generators/userq/templates/migration.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/generators/userq/templates/migration.rb', line 2 def change create_table :user_queues do |t| t.string :code t.datetime :expires_at t.text :data t.string :context t. end end |