Sha256: ea2b7e1d9dbd0445b151bec4b280523a088637ea8bfd782b11f4c0aad919cf42
Contents?: true
Size: 791 Bytes
Versions: 2
Compression:
Stored size: 791 Bytes
Contents
class CreateTables < MIGRATION_CLASS def self.up create_table :users do |t| t.string :username t.string :facebook_token ## Database authenticatable t.string :email, null: false, default: '' t.string :encrypted_password, null: false, default: '' t.datetime :password_changed_at t.timestamps null: false end create_table :secure_users do |t| t.string :email t.string :encrypted_password, null: false, default: '' t.timestamps null: false end create_table :old_passwords do |t| t.string :encrypted_password t.references :password_archivable, polymorphic: true end end def self.down drop_table :users drop_table :secure_users drop_table :old_passwords end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
devise-security-0.11.1 | test/dummy/db/migrate/20120508165529_create_tables.rb |
devise-security-0.11.0 | test/dummy/db/migrate/20120508165529_create_tables.rb |