Module: AuthSlice::Adapter::Activerecord::ClassMethods
- Defined in:
- app/models/adapter/activerecord.rb
Instance Method Summary collapse
Instance Method Details
#create_db_table ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'app/models/adapter/activerecord.rb', line 40 def create_db_table self.connection.create_table("users") do |t| t.string :name, :limit => 40, :null => false t.string :username, :limit => 40, :null => false t.string :email, :null => false t.string :crypted_password, :limit => 40 t.string :salt, :limit => 40, :null => false t.string :remember_token t.date :remember_token_expires_at t. end end |
#drop_db_table ⇒ Object
36 37 38 |
# File 'app/models/adapter/activerecord.rb', line 36 def drop_db_table self.connection.drop_table("users") end |