scinote-web/db/migrate/20150713063224_create_organizations.rb
2017-06-30 10:23:28 +02:00

11 lines
249 B
Ruby

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