Class: Pasaporte::Models::MigrateOpenidTables
- Inherits:
-
V
- Object
- V
- Pasaporte::Models::MigrateOpenidTables
- Defined in:
- lib/pasaporte/models.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
106 107 108 109 110 111 112 113 114 115 116 117 |
# File 'lib/pasaporte/models.rb', line 106 def self.down drop_table :pasaporte_nonces create_table :pasaporte_nonces, :force => true do |t| t.column "nonce", :string t.column "created", :integer end create_table :pasaporte_settings, :force => true do |t| t.column "setting", :string t.column "value", :binary end end |
.up ⇒ Object
96 97 98 99 100 101 102 103 104 |
# File 'lib/pasaporte/models.rb', line 96 def self.up drop_table :pasaporte_settings drop_table :pasaporte_nonces create_table :pasaporte_nonces, :force => true do |t| t.column :server_url, :string, :null => false t.column :timestamp, :integer, :null => false t.column :salt, :string, :null => false end end |