scinote-web/db/migrate/20150713063224_create_organizations.rb
2016-02-12 16:52:43 +01:00

12 lines
260 B
Ruby

class CreateOrganizations < ActiveRecord::Migration
def change
create_table :organizations do |t|
## General info
t.string :name, null: false
t.timestamps null: false
end
add_index :organizations, :name, unique: true
end
end