2015-02-28 17:28:05 +01:00
|
|
|
# Setting up organisations' kinds
|
|
|
|
class CreateKinds < ActiveRecord::Migration
|
|
|
|
def change
|
|
|
|
create_table :kinds do |t|
|
|
|
|
t.string :name, unique: true, null: false
|
|
|
|
t.string :icon
|
|
|
|
|
|
|
|
t.timestamps null: false
|
|
|
|
end
|
|
|
|
|
|
|
|
# Create the relevant organisation kinds
|
|
|
|
Kind.create name: 'association', icon: 'sitemap'
|
|
|
|
Kind.create name: 'enterprise', icon: 'building'
|
2016-04-23 12:54:39 +02:00
|
|
|
Kind.create name: 'glug', icon: 'support'
|
2015-02-28 17:28:05 +01:00
|
|
|
Kind.create name: 'provider', icon: 'tty'
|
|
|
|
Kind.create name: 'institution', icon: 'institution'
|
|
|
|
end
|
|
|
|
end
|