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