1 # This file should contain all the record creation needed to seed the database with its default values.
2 # The data can then be loaded with the rake db:seed (or newd alongside the db with db:setup).
6 # cities = City.new([{ name: 'Chicago' }, { name: 'Copenhagen' }])
7 # Mayor.new(name: 'Emanuel', city: cities.first)
8 cl = CommonLicense.new name: 'Public Domain',
9 url: 'http://ja.wikipedia.org/wiki/%E3%83%91%E3%83%96%E3%83%AA%E3%83%83%E3%82%AF%E3%83%89%E3%83%A1%E3%82%A4%E3%83%B3',
10 cc_by: 0, cc_sa: 0, cc_nd: 0, cc_nc: 0, no_resize: 0, no_flip: 0, no_convert: 0, keep_aspect_ratio: 0
11 cl = CommonLicense.new name: 'Creative Commons 3.0(by)',
12 url: 'http://creativecommons.org/licenses/by/3.0/legalcode',
13 cc_by: 1, cc_sa: 0, cc_nd: 0, cc_nc: 0, no_resize: 0, no_flip: 0, no_convert: 0, keep_aspect_ratio: 0
15 cl = CommonLicense.new name: 'Creative Commons 3.0(by_sa)',
16 url: 'http://creativecommons.org/licenses/by-sa/3.0/legalcode',
17 cc_by: 1, cc_sa: 1, cc_nd: 0, cc_nc: 0, no_resize: 0, no_flip: 0, no_convert: 0, keep_aspect_ratio: 0
19 cl = CommonLicense.new name: 'Creative Commons 3.0(by_nd)',
20 url: 'http://creativecommons.org/licenses/by-nd/3.0/legalcode',
21 cc_by: 1, cc_sa: 0, cc_nd: 1, cc_nc: 0, no_resize: 0, no_flip: 0, no_convert: 0, keep_aspect_ratio: 0
23 cl = CommonLicense.new name: 'Creative Commons 3.0(by_nc)',
24 url: 'http://creativecommons.org/licenses/by-nc/3.0/legalcode',
25 cc_by: 1, cc_sa: 0, cc_nd: 0, cc_nc: 1, no_resize: 0, no_flip: 0, no_convert: 0, keep_aspect_ratio: 0
27 cl = CommonLicense.new name: 'Creative Commons 3.0(by_nc_sa)',
28 url: 'http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode',
29 cc_by: 1, cc_sa: 1, cc_nd: 0, cc_nc: 1, no_resize: 0, no_flip: 0, no_convert: 0, keep_aspect_ratio: 0
31 cl = CommonLicense.new name: 'Creative Commons 3.0(by_nc_nd)',
32 url: 'http://creativecommons.org/licenses/by-nc-nd/3.0/legalcode',
33 cc_by: 1, cc_sa: 0, cc_nd: 1, cc_nc: 1, no_resize: 0, no_flip: 0, no_convert: 0, keep_aspect_ratio: 0