Sha256: 6be9ff67908c71527c1e84d25d9772258ddbe08519230ca343787f76e780e42f
Contents?: true
Size: 607 Bytes
Versions: 39
Compression:
Stored size: 607 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
39 entries across 39 versions & 1 rubygems