Class: CreateConsumerTokens
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateConsumerTokens
- Defined in:
- lib/generators/templates/db/migration.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
15 16 17 |
# File 'lib/generators/templates/db/migration.rb', line 15 def self.down drop_table :consumer_tokens end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/generators/templates/db/migration.rb', line 2 def self.up create_table :consumer_tokens do |t| t.string :oauth_accessible_type, :null => false, :limit => 30 t.integer :oauth_accessible_id, :null => false t.string :type, :null => false, :limit => 30 t.string :provider, :null => false, :limit => 50 t.string :token, :null => false, :limit => 1024 t.string :secret, :null => false, :limit => 255 t. end end |