Sha256: 83ef774194f30276449df1dda709ccc4867be3cd9dc28f64d73065e4de978f04
Contents?: true
Size: 801 Bytes
Versions: 2
Compression:
Stored size: 801 Bytes
Contents
# This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). # # Examples: # # cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }]) # Mayor.create(:name => 'Daley', :city => cities.first) <% if options[:remote_users] -%> u = User.new(:name => "System", :login => "system") u.id = 0 u.save <% end -%> c = Configuration.instance if defined? Ixtlan::Errors c.errors_keep_dumps = 30 end if defined? Ixtlan::Audit c.audits_keep_logs = 90 end if defined? Ixtlan::Sessions c.idle_session_timeout = 15 end <% if options[:remote_users] -%> c.modified_by = u <% else -%> # TODO maybe a modified_by= assignment is missing <% end -%> c.save
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
resty-generators-0.7.3 | lib/generators/resty/setup/templates/seeds.rb |
resty-generators-0.7.2 | lib/generators/resty/setup/templates/seeds.rb |