scinote-web/db/migrate/20150713063224_create_organizations.rb

12 lines
260 B
Ruby
Raw Normal View History

2016-02-12 23:52:43 +08:00
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