mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 05:34:53 +08:00
11 lines
249 B
Ruby
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
|