move fixtures to seeds.rb
This commit is contained in:
parent
a8dc64a6fe
commit
053f035d31
8 changed files with 304 additions and 301 deletions
304
db/seeds.rb
304
db/seeds.rb
|
@ -5,3 +5,307 @@
|
|||
#
|
||||
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
|
||||
# Mayor.create(name: 'Emanuel', city: cities.first)
|
||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
||||
|
||||
## USERS
|
||||
|
||||
User.create({
|
||||
name: 'user',
|
||||
email: 'user@user.com',
|
||||
password: 'toolsplusconsciousness',
|
||||
code: 'qwertyui',
|
||||
joinedwithcode: 'qwertyui',
|
||||
admin: 'false',
|
||||
})
|
||||
|
||||
User.create({
|
||||
name: 'admin',
|
||||
email: 'admin@admin.com',
|
||||
password: 'toolsplusconsciousness',
|
||||
code: 'iuytrewq',
|
||||
joinedwithcode: 'iuytrewq',
|
||||
admin: 'true',
|
||||
})
|
||||
|
||||
## METACODES
|
||||
Metacode.create({
|
||||
name: 'Action',
|
||||
icon: '/assets/icons/blueprint_96px/bp_action.png',
|
||||
color: '#BD6C85',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Activity',
|
||||
icon: '/assets/icons/blueprint_96px/bp_activity.png',
|
||||
color: '#6EBF65',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Catalyst',
|
||||
icon: '/assets/icons/blueprint_96px/bp_catalyst.png',
|
||||
color: '#EF8964',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Closed',
|
||||
icon: '/assets/icons/blueprint_96px/bp_closedissue.png',
|
||||
color: '#ABB49F',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Process',
|
||||
icon: '/assets/icons/blueprint_96px/bp_process.png',
|
||||
color: '#BDB25E',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Future Dev',
|
||||
icon: '/assets/icons/blueprint_96px/bp_futuredev.png',
|
||||
color: '#25A17F',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Group',
|
||||
icon: '/assets/icons/blueprint_96px/bp_group.png',
|
||||
color: '#7076BC',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Implication',
|
||||
icon: '/assets/icons/blueprint_96px/bp_implication.png',
|
||||
color: '#83DECA',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Insight',
|
||||
icon: '/assets/icons/blueprint_96px/bp_insight.png',
|
||||
color: '#B074AD',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Intention',
|
||||
icon: '/assets/icons/blueprint_96px/bp_intention.png',
|
||||
color: '#BAEAFF',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Knowledge',
|
||||
icon: '/assets/icons/blueprint_96px/bp_knowledge.png',
|
||||
color: '#60ACF7',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Location',
|
||||
icon: '/assets/icons/blueprint_96px/bp_location.png',
|
||||
color: '#ABD9A7',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Need ',
|
||||
icon: '/assets/icons/blueprint_96px/bp_need.png',
|
||||
color: '#D2A7D4',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Open Issue',
|
||||
icon: '/assets/icons/blueprint_96px/bp_openissue.png',
|
||||
color: '#9BBF71',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Opportunity',
|
||||
icon: '/assets/icons/blueprint_96px/bp_opportunity.png',
|
||||
color: '#889F64',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Person',
|
||||
icon: '/assets/icons/blueprint_96px/bp_person.png',
|
||||
color: '#DE925F',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Platform',
|
||||
icon: '/assets/icons/blueprint_96px/bp_platform.png',
|
||||
color: '#21C8FE',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Problem',
|
||||
icon: '/assets/icons/blueprint_96px/bp_problem.png',
|
||||
color: '#99CFC4',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Resource',
|
||||
icon: '/assets/icons/blueprint_96px/bp_resource.png',
|
||||
color: '#C98C63 ',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Role',
|
||||
icon: '/assets/icons/blueprint_96px/bp_role.png',
|
||||
color: '#A8595D',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Task',
|
||||
icon: '/assets/icons/blueprint_96px/bp_task.png',
|
||||
color: '#3397C4',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Trajectory',
|
||||
icon: '/assets/icons/blueprint_96px/bp_trajectory.png',
|
||||
color: '#D3AA4C',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Argument',
|
||||
icon: '/assets/icons/generics_96px/gen_argument.png',
|
||||
color: '#7FAEFD',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Con',
|
||||
icon: '/assets/icons/generics_96px/gen_con.png',
|
||||
color: '#CF7C74',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Subject',
|
||||
icon: '/assets/icons/generics_96px/gen_subject.png',
|
||||
color: '#8293D8',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Decision',
|
||||
icon: '/assets/icons/generics_96px/gen_decision.png',
|
||||
color: '#CCA866',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Event ',
|
||||
icon: '/assets/icons/generics_96px/gen_event.png',
|
||||
color: '#F5854B',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Example',
|
||||
icon: '/assets/icons/generics_96px/gen_example.png',
|
||||
color: '#618C61',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Experience',
|
||||
icon: '/assets/icons/generics_96px/gen_experience.png',
|
||||
color: '#BE995F',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Feedback',
|
||||
icon: '/assets/icons/generics_96px/gen_feedback.png',
|
||||
color: '#54A19D',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Aim',
|
||||
icon: '/assets/icons/generics_96px/gen_aim.png',
|
||||
color: '#B0B0B0',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Good Practice',
|
||||
icon: '/assets/icons/generics_96px/gen_goodpractice.png',
|
||||
color: '#BD9E86',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Idea',
|
||||
icon: '/assets/icons/generics_96px/gen_idea.png',
|
||||
color: '#C4BC5E',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'List',
|
||||
icon: '/assets/icons/generics_96px/gen_list.png',
|
||||
color: '#B7A499',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Media',
|
||||
icon: '/assets/icons/generics_96px/gen_media.png',
|
||||
color: '#6D94CC',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Metamap',
|
||||
icon: '/assets/icons/generics_96px/gen_metamap.png',
|
||||
color: '#AEA9FD',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Model',
|
||||
icon: '/assets/icons/generics_96px/gen_model.png',
|
||||
color: '#B385BA',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Note',
|
||||
icon: '/assets/icons/generics_96px/gen_note.png',
|
||||
color: '#A389A1',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Perspective',
|
||||
icon: '/assets/icons/generics_96px/gen_perspective.png',
|
||||
color: '#2EB6CC',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Pro',
|
||||
icon: '/assets/icons/generics_96px/gen_pro.png',
|
||||
color: '#89B879',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Project',
|
||||
icon: '/assets/icons/generics_96px/gen_project.png',
|
||||
color: '#85A050',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Question',
|
||||
icon: '/assets/icons/generics_96px/gen_question.png',
|
||||
color: '#5CB3B3',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Reference',
|
||||
icon: '/assets/icons/generics_96px/gen_reference.png',
|
||||
color: '#A7A7A7',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Research',
|
||||
icon: '/assets/icons/generics_96px/gen_research.png',
|
||||
color: '#CD8E89',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Status update',
|
||||
icon: '/assets/icons/generics_96px/gen_status.png',
|
||||
color: '#EFA7C0',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Tool',
|
||||
icon: '/assets/icons/generics_96px/gen_tool.png ',
|
||||
color: '#828282',
|
||||
})
|
||||
|
||||
Metacode.create({
|
||||
name: 'Wildcard',
|
||||
icon: '/assets/icons/generics_96px/gen_wildcard.png',
|
||||
color: '#73C7DE',
|
||||
})
|
||||
|
|
0
test/fixtures/.gitkeep
vendored
0
test/fixtures/.gitkeep
vendored
9
test/fixtures/in_metacode_sets.yml
vendored
9
test/fixtures/in_metacode_sets.yml
vendored
|
@ -1,9 +0,0 @@
|
|||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
||||
|
||||
#one:
|
||||
# metacode:
|
||||
# metacode_set:
|
||||
|
||||
#two:
|
||||
# metacode:
|
||||
# metacode_set:
|
11
test/fixtures/mappings.yml
vendored
11
test/fixtures/mappings.yml
vendored
|
@ -1,11 +0,0 @@
|
|||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
||||
|
||||
# This model initially had no columns defined. If you add columns to the
|
||||
# model remove the '{}' from the fixture names and add the columns immediately
|
||||
# below each fixture, per the syntax in the comments below
|
||||
#
|
||||
#one: {}
|
||||
# column: value
|
||||
#
|
||||
#two: {}
|
||||
# column: value
|
13
test/fixtures/metacode_sets.yml
vendored
13
test/fixtures/metacode_sets.yml
vendored
|
@ -1,13 +0,0 @@
|
|||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
||||
|
||||
#one:
|
||||
# name: MyString
|
||||
# desc: MyText
|
||||
# user:
|
||||
# mapperContributed: false
|
||||
|
||||
#two:
|
||||
# name: MyString
|
||||
# desc: MyText
|
||||
# user:
|
||||
# mapperContributed: false
|
240
test/fixtures/metacodes.yml
vendored
240
test/fixtures/metacodes.yml
vendored
|
@ -1,240 +0,0 @@
|
|||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
||||
|
||||
# This model initially had no columns defined. If you add columns to the
|
||||
# model remove the '{}' from the fixture names and add the columns immediately
|
||||
# below each fixture, per the syntax in the comments below
|
||||
#
|
||||
one:
|
||||
name: Action
|
||||
icon: /assets/icons/blueprint_96px/bp_action.png
|
||||
color: #BD6C85
|
||||
|
||||
two:
|
||||
name: Activity
|
||||
icon: /assets/icons/blueprint_96px/bp_activity.png
|
||||
color: #6EBF65
|
||||
|
||||
three:
|
||||
name: Catalyst
|
||||
icon: /assets/icons/blueprint_96px/bp_catalyst.png
|
||||
color: #EF8964
|
||||
|
||||
four:
|
||||
name: Closed
|
||||
icon: /assets/icons/blueprint_96px/bp_closedissue.png
|
||||
color: #ABB49F
|
||||
|
||||
five:
|
||||
name: Process
|
||||
icon: /assets/icons/blueprint_96px/bp_process.png
|
||||
color: #BDB25E
|
||||
|
||||
six:
|
||||
name: Future Dev
|
||||
icon: /assets/icons/blueprint_96px/bp_futuredev.png
|
||||
color: #25A17F
|
||||
|
||||
seven:
|
||||
name: Group
|
||||
icon: /assets/icons/blueprint_96px/bp_group.png
|
||||
color: #7076BC
|
||||
|
||||
eight:
|
||||
name: Implication
|
||||
icon: /assets/icons/blueprint_96px/bp_implication.png
|
||||
color: #83DECA
|
||||
|
||||
nine:
|
||||
name: Insight
|
||||
icon: /assets/icons/blueprint_96px/bp_insight.png
|
||||
color: #B074AD
|
||||
|
||||
ten:
|
||||
name: Intention
|
||||
icon: /assets/icons/blueprint_96px/bp_intention.png
|
||||
color: #BAEAFF
|
||||
|
||||
eleven:
|
||||
name: Knowledge
|
||||
icon: /assets/icons/blueprint_96px/bp_knowledge.png
|
||||
color: #60ACF7
|
||||
|
||||
twelve:
|
||||
name: Location
|
||||
icon: /assets/icons/blueprint_96px/bp_location.png
|
||||
color: #ABD9A7
|
||||
|
||||
thirteen:
|
||||
name: Need
|
||||
icon: /assets/icons/blueprint_96px/bp_need.png
|
||||
color: #D2A7D4
|
||||
|
||||
fourteen:
|
||||
name: Open Issue
|
||||
icon: /assets/icons/blueprint_96px/bp_openissue.png
|
||||
color: #9BBF71
|
||||
|
||||
fifteen:
|
||||
name: Opportunity
|
||||
icon: /assets/icons/blueprint_96px/bp_opportunity.png
|
||||
color: #889F64
|
||||
|
||||
sixteen:
|
||||
name: Person
|
||||
icon: /assets/icons/blueprint_96px/bp_person.png
|
||||
color: #DE925F
|
||||
|
||||
seventeen:
|
||||
name: Platform
|
||||
icon: /assets/icons/blueprint_96px/bp_platform.png
|
||||
color: #21C8FE
|
||||
|
||||
eighteen:
|
||||
name: Problem
|
||||
icon: /assets/icons/blueprint_96px/bp_problem.png
|
||||
color: #99CFC4
|
||||
|
||||
nineteen:
|
||||
name: Resource
|
||||
icon: /assets/icons/blueprint_96px/bp_resource.png
|
||||
color: #C98C63
|
||||
|
||||
twenty:
|
||||
name: Role
|
||||
icon: /assets/icons/blueprint_96px/bp_role.png
|
||||
color: #A8595D
|
||||
|
||||
twenty-one:
|
||||
name: Task
|
||||
icon: /assets/icons/blueprint_96px/bp_task.png
|
||||
color: #3397C4
|
||||
|
||||
twenty-two:
|
||||
name: Trajectory
|
||||
icon: /assets/icons/blueprint_96px/bp_trajectory.png
|
||||
color: #D3AA4C
|
||||
|
||||
twenty-three:
|
||||
name: Argument
|
||||
icon: /assets/icons/generics_96px/gen_argument.png
|
||||
color: #7FAEFD
|
||||
|
||||
twenty-four:
|
||||
name: Con
|
||||
icon: /assets/icons/generics_96px/gen_con.png
|
||||
color: #CF7C74
|
||||
|
||||
twenty-five:
|
||||
name: Subject
|
||||
icon: /assets/icons/generics_96px/gen_subject.png
|
||||
color: #8293D8
|
||||
|
||||
twenty-six:
|
||||
name: Decision
|
||||
icon: /assets/icons/generics_96px/gen_decision.png
|
||||
color: #CCA866
|
||||
|
||||
twenty-seven:
|
||||
name: Event
|
||||
icon: /assets/icons/generics_96px/gen_event.png
|
||||
color: #F5854B
|
||||
|
||||
twenty-eight:
|
||||
name: Example
|
||||
icon: /assets/icons/generics_96px/gen_example.png
|
||||
color: #618C61
|
||||
|
||||
twenty-nine:
|
||||
name: Experience
|
||||
icon: /assets/icons/generics_96px/gen_experience.png
|
||||
color: #BE995F
|
||||
|
||||
thirty:
|
||||
name: Feedback
|
||||
icon: /assets/icons/generics_96px/gen_feedback.png
|
||||
color: #54A19D
|
||||
|
||||
thirty-one:
|
||||
name: Aim
|
||||
icon: /assets/icons/generics_96px/gen_aim.png
|
||||
color: #B0B0B0
|
||||
|
||||
thirty-two:
|
||||
name: Good Practice
|
||||
icon: /assets/icons/generics_96px/gen_goodpractice.png
|
||||
color: #BD9E86
|
||||
|
||||
thirty-three:
|
||||
name: Idea
|
||||
icon: /assets/icons/generics_96px/gen_idea.png
|
||||
color: #C4BC5E
|
||||
|
||||
thirty-four:
|
||||
name: List
|
||||
icon: /assets/icons/generics_96px/gen_list.png
|
||||
color: #B7A499
|
||||
|
||||
thirty-five:
|
||||
name: Media
|
||||
icon: /assets/icons/generics_96px/gen_media.png
|
||||
color: #6D94CC
|
||||
|
||||
thirty-six:
|
||||
name: Metamap
|
||||
icon: /assets/icons/generics_96px/gen_metamap.png
|
||||
color: #AEA9FD
|
||||
|
||||
thirty-seven:
|
||||
name: Model
|
||||
icon: /assets/icons/generics_96px/gen_model.png
|
||||
color: #B385BA
|
||||
|
||||
thirty-eight:
|
||||
name: Note
|
||||
icon: /assets/icons/generics_96px/gen_note.png
|
||||
color: #A389A1
|
||||
|
||||
thirty-nine:
|
||||
name: Perspective
|
||||
icon: /assets/icons/generics_96px/gen_perspective.png
|
||||
color: #2EB6CC
|
||||
|
||||
forty:
|
||||
name: Pro
|
||||
icon: /assets/icons/generics_96px/gen_pro.png
|
||||
color: #89B879
|
||||
|
||||
forty-one:
|
||||
name: Project
|
||||
icon: /assets/icons/generics_96px/gen_project.png
|
||||
color: #85A050
|
||||
|
||||
forty-two:
|
||||
name: Question
|
||||
icon: /assets/icons/generics_96px/gen_question.png
|
||||
color: #5CB3B3
|
||||
|
||||
forty-three:
|
||||
name: Reference
|
||||
icon: /assets/icons/generics_96px/gen_reference.png
|
||||
color: #A7A7A7
|
||||
|
||||
forty-four:
|
||||
name: Research
|
||||
icon: /assets/icons/generics_96px/gen_research.png
|
||||
color: #CD8E89
|
||||
|
||||
forty-five:
|
||||
name: Status update
|
||||
icon: /assets/icons/generics_96px/gen_status.png
|
||||
color: #EFA7C0
|
||||
|
||||
forty-six:
|
||||
name: Tool
|
||||
icon: /assets/icons/generics_96px/gen_tool.png
|
||||
color: #828282
|
||||
|
||||
forty-seven:
|
||||
name: Wildcard
|
||||
icon: /assets/icons/generics_96px/gen_wildcard.png
|
||||
color: #73C7DE
|
11
test/fixtures/topics.yml
vendored
11
test/fixtures/topics.yml
vendored
|
@ -1,11 +0,0 @@
|
|||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
||||
|
||||
# This model initially had no columns defined. If you add columns to the
|
||||
# model remove the '{}' from the fixture names and add the columns immediately
|
||||
# below each fixture, per the syntax in the comments below
|
||||
#
|
||||
#one: {}
|
||||
# column: value
|
||||
#
|
||||
#two: {}
|
||||
# column: value
|
17
test/fixtures/users.yml
vendored
17
test/fixtures/users.yml
vendored
|
@ -1,17 +0,0 @@
|
|||
#password: toolsplusconsciousness
|
||||
|
||||
user:
|
||||
name: user
|
||||
email: user@user.com
|
||||
encrypted_password: $2a$10$psR68SWYNy5ZKQPs9FrFM.HuRMrTXO/YFzv.HaUmdCsQZsQrG1XAW
|
||||
code: qwertyui
|
||||
joinedwithcode: qwertyui
|
||||
admin: false
|
||||
|
||||
admin:
|
||||
name: admin
|
||||
email: admin@admin.com
|
||||
encrypted_password: $2a$10$psR68SWYNy5ZKQPs9FrFM.HuRMrTXO/YFzv.HaUmdCsQZsQrG1XAW
|
||||
code: iuytrewq
|
||||
joinedwithcode: iuytrewq
|
||||
admin: true
|
Loading…
Reference in a new issue