Sha256: 87a04dc96afc2af169802f60b099f0ccdfaf427049fba9194c3936e16def5b5f
Contents?: true
Size: 1.19 KB
Versions: 2
Compression:
Stored size: 1.19 KB
Contents
class CreateTables < ActiveRecord::Migration def change create_table :users do |t| ## Database authenticatable t.string :email, :null => true, :default => "" t.string :encrypted_password, :null => true, :default => "" ## Recoverable t.string :reset_password_token t.datetime :reset_password_sent_at ## Confirmable t.string :confirmation_token t.datetime :confirmed_at t.datetime :confirmation_sent_at t.string :unconfirmed_email # Only if using reconfirmable t.string :username t.integer :profile_id t.boolean :active ## Invitable t.string :invitation_token, :limit => 60 t.datetime :invitation_created_at t.datetime :invitation_sent_at t.datetime :invitation_accepted_at t.integer :invitation_limit t.integer :invited_by_id t.string :invited_by_type t.timestamps end add_index :users, :invitation_token, :unique => true create_table :admins do |t| ## Database authenticatable t.string :email, :null => true, :default => "" t.string :encrypted_password, :null => true, :default => "" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
devise_invitable-1.3.2 | test/rails_app/db/migrate/20100401102949_create_tables.rb |
devise_invitable-1.3.1 | test/rails_app/db/migrate/20100401102949_create_tables.rb |