Sha256: a1b5338786c084baaea8bee88d4fa4d48ec9d86ca5409786d85c8db9b1304a98
Contents?: true
Size: 612 Bytes
Versions: 19
Compression:
Stored size: 612 Bytes
Contents
puts "Seeding #{__FILE__} from Spina::Engine" Spina::User.destroy_all Spina::User.create name: "Bram", email: "bram@denkgroot.com", password: "spina", password_confirmation: "spina", admin: true Spina::Account.destroy_all Spina::Account.create name: "Website" Spina::Page.destroy_all Spina::Photo.destroy_all ['after sun 2', 'after sun', 'amygdalus', 'at sunset-1', 'colorfull', 'nature tree', 'orchid', 'smooth', 'soft', 'spring memory', 'spring purple', 'spring', 'yew-tree'].each do |image| Spina::Photo.create({ file: File.open(File.join(Spina::Engine.root, "test/support/images/#{image}.jpg")) }) end
Version data entries
19 entries across 19 versions & 1 rubygems