summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorRosemary Sanchez <rsanchez@madebyuppercut.com>2013-07-19 11:51:55 -0600
committerRosemary Sanchez <rsanchez@madebyuppercut.com>2013-07-19 14:34:32 -0600
commitb583467eacaf0ece284a294da98e9b94bf1d917b (patch)
tree186d6f366f46f37d8663140324f89c0a9ed7073f /db
parent5043ade1c2fa671f5c57c73bd8897f579c2af11c (diff)
Create SignUps model.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20130719165834_create_sign_ups.rb9
-rw-r--r--db/schema.rb9
2 files changed, 15 insertions, 3 deletions
diff --git a/db/migrate/20130719165834_create_sign_ups.rb b/db/migrate/20130719165834_create_sign_ups.rb
new file mode 100644
index 0000000..bb874f2
--- /dev/null
+++ b/db/migrate/20130719165834_create_sign_ups.rb
@@ -0,0 +1,9 @@
+class CreateSignUps < ActiveRecord::Migration
+ def change
+ create_table :sign_ups do |t|
+ t.string :email
+
+ t.timestamps
+ end
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index ea89ed5..19cb362 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,9 +11,12 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 0) do
+ActiveRecord::Schema.define(version: 20130719165834) do
- # These are extensions that must be enabled in order to support this database
- enable_extension "plpgsql"
+ create_table "sign_ups", force: true do |t|
+ t.string "email"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
end