-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from realstorypro/export
migrating to contacts model
- Loading branch information
Showing
5 changed files
with
197 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
class Contact < ApplicationRecord | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
class CreateContactus < ActiveRecord::Migration[7.0] | ||
def change | ||
create_table :contacts do |t| | ||
t.string :email | ||
t.string :first_name | ||
t.string :last_name | ||
t.string :title | ||
t.string :url | ||
t.string :company | ||
t.string :location | ||
t.string :timezone | ||
t.string :source | ||
|
||
t.timestamps | ||
end | ||
|
||
add_index :contacts, :email, unique: true | ||
end | ||
end |
Oops, something went wrong.