Sha256: 5a761e140328fb8adb42dfeea49867b54380349164dc946a5c437a9de062f0ed
Contents?: true
Size: 969 Bytes
Versions: 6
Compression:
Stored size: 969 Bytes
Contents
# encoding: utf-8 # 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: 'Emanuel', city: cities.first) # Create the list of most used currencies currencies = InvoiceBar::Currency.create([ { name: 'Česká koruna', symbol: 'Kč', priority: '4' }, { name: 'Euro', symbol: '€', priority: '3' }, { name: 'Americký dolar', symbol: 'US$', priority: '2' }, { name: 'Polský zlotý', symbol: 'zł', priority: '1' } ]) # Create administrator =begin administrator = InvoiceBar::User.create( name: 'admin', email: 'admin@admin.cz', ic: 123456, administrator: true, address: InvoiceBar::Address.create( street: 'Ulice', street_number: '1', city: 'Mesto', postcode: '74727' ) ) =end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
invoice_bar-0.0.6 | db/seeds.rb |
invoice_bar-0.0.5 | db/seeds.rb |
invoice_bar-0.0.4 | db/seeds.rb |
invoice_bar-0.0.3 | db/seeds.rb |
invoice_bar-0.0.2 | db/seeds.rb |
invoice_bar-0.0.1 | db/seeds.rb |