replaces organization migrations with a new table
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
class AddOrganizationToUsers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :organization_name, :string, limit: 80
|
||||
add_column :users, :organization_verified_at, :datetime
|
||||
add_column :users, :phone_number, :string, limit: 30
|
||||
end
|
||||
end
|
||||
@@ -1,5 +0,0 @@
|
||||
class AddOrganizationRejectedAtToUsers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :organization_rejected_at, :datetime
|
||||
end
|
||||
end
|
||||
10
db/migrate/20150813142213_create_organizations.rb
Normal file
10
db/migrate/20150813142213_create_organizations.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class CreateOrganizations < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :organizations do |t|
|
||||
t.belongs_to :user, index: true, foreign_key: true
|
||||
t.string :name, limit: 80
|
||||
t.datetime :verified_at
|
||||
t.datetime :rejected_at
|
||||
end
|
||||
end
|
||||
end
|
||||
5
db/migrate/20150813161654_add_phone_number_to_users.rb
Normal file
5
db/migrate/20150813161654_add_phone_number_to_users.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddPhoneNumberToUsers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :phone_number, :string, limit: 30
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user