Sha256: 7ba8762986666e39e2481fe73ecbb51909e1b1cd4a181ddfc1ba4de3aab0f5a1
Contents?: true
Size: 324 Bytes
Versions: 1
Compression:
Stored size: 324 Bytes
Contents
class PopulateUsers < ActiveRecord::Migration def self.up admins = Role.create :name => 'admin' Role.create :name => 'user' admin = User.create :login => 'admin', :email => 'admin@admins.foob', :password => 'admin', :password_confirmation => 'admin' admin.roles << admins end def self.down end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
talia_core-0.4.2 | generators/talia_base/templates/migrations/populate_users.rb |