agenda-libre-ruby/db/migrate/20150215172000_create_kinds.rb

19 lines
542 B
Ruby
Raw Normal View History

# 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'
Kind.create name: 'provider', icon: 'tty'
Kind.create name: 'institution', icon: 'institution'
end
end