Class: SqueezData
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- SqueezData
- Defined in:
- lib/generators/squeezer/templates/db/migrate/squeez_data.rb
Class Method Summary collapse
Class Method Details
.up ⇒ Object
2 3 4 5 6 |
# File 'lib/generators/squeezer/templates/db/migrate/squeez_data.rb', line 2 def self.up Role.create :name=>'Admin',:desc=>'Es el Rol de administrador' User.create :username=>'olvap',:email=>'[email protected]',:password_confirmation=>'admin6',:password=>'admin6', :role_ids=>[1] Site.create :name =>'Squeezer',:slogan=>'Porque a nadie le gusta exprimir pero a todos les gusta la limonada',:style=>'squeezer' end |