diff options
| author | mo khan <mo@mokhan.ca> | 2014-11-10 09:53:19 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-11-10 09:53:19 -0700 |
| commit | 05ba97aa19dde08954ee4e105b008d41a56e6903 (patch) | |
| tree | 9c7610a87ae70dcf9b902d7149a2267f901597e7 /db | |
| parent | 33c445a5c514a7b2f0bd4039b177043033f7b7fb (diff) | |
show list of applications.
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20141110163805_create_applications.rb | 9 | ||||
| -rw-r--r-- | db/schema.rb | 8 |
2 files changed, 16 insertions, 1 deletions
diff --git a/db/migrate/20141110163805_create_applications.rb b/db/migrate/20141110163805_create_applications.rb new file mode 100644 index 0000000..f9c652f --- /dev/null +++ b/db/migrate/20141110163805_create_applications.rb @@ -0,0 +1,9 @@ +class CreateApplications < ActiveRecord::Migration + def change + create_table :applications do |t| + t.string :name + + t.timestamps + end + end +end diff --git a/db/schema.rb b/db/schema.rb index c73bd92..a06e22f 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,11 +11,17 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20141110011156) do +ActiveRecord::Schema.define(version: 20141110163805) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" + create_table "applications", force: true do |t| + t.string "name" + t.datetime "created_at" + t.datetime "updated_at" + end + create_table "sessions", force: true do |t| t.integer "user_id" t.string "ip_address" |
