Sha256: 7812d84546fab69b97602d14f8d4c358bd848e3efd4746d1354c3a9cbed66525
Contents?: true
Size: 604 Bytes
Versions: 3
Compression:
Stored size: 604 Bytes
Contents
class CreateAccounts < ActiveRecord::Migration def self.up create_table :accounts, :force => true do |t| t.string :name, :surname, :email, :salt, :crypted_password, :role, :modules t.timestamps end # I'll create the first account Account.create({:email => "info@lipsiasoft.com", :name => "Davide", :surname => "D'Agostino", :password => "admin", :password_confirmation => "admin", :role => "administrator" }) end def self.down drop_table "accounts" end end
Version data entries
3 entries across 3 versions & 1 rubygems