Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CreateUsers < ActiveRecord::Migration
- def self.up
- create_table "users", :force => true do |t|
- t.column :login, :string, :limit => 40
- t.column :name, :string, :limit => 100, :default => '', :null => true
- t.column :email, :string, :limit => 100
- t.column :phone, :string, :limig => 40
- t.column :address, :string
- t.column :crypted_password, :string, :limit => 40
- t.column :salt, :string, :limit => 40
- t.column :created_at, :datetime
- t.column :updated_at, :datetime
- t.column :role, :string, :limit => 1
- t.column :maxdomains, :integer
- t.column :maxaliases, :integer
- t.column :maxvhosts, :integer
- t.column :remember_token, :string, :limit => 40
- t.column :remember_token_expires_at, :datetime
- end
- add_index :users, :login, :unique => true
- end
- def self.down
- drop_table "users"
- end
- e
Add Comment
Please, Sign In to add comment