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

19 lines
541 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'
Kind.create name: 'lug', icon: 'support'
Kind.create name: 'provider', icon: 'tty'
Kind.create name: 'institution', icon: 'institution'
end
end