about summary refs log tree commit diff stats
path: root/db
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-07-02 21:39:57 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-07-02 21:39:57 -0400
commit79d9cd3c5e3764db9d3506e1702042a7a7a4aea3 (patch)
tree3a83e1e9f4b307199b95de86a28f58eb0f40ae04 /db
parent9cf94eec5ae98f750f9babc0c37373df87e3981c (diff)
downloadthoughts-79d9cd3c5e3764db9d3506e1702042a7a7a4aea3.tar.gz
thoughts-79d9cd3c5e3764db9d3506e1702042a7a7a4aea3.tar.bz2
thoughts-79d9cd3c5e3764db9d3506e1702042a7a7a4aea3.zip
Set up Capistrano
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20170703013609_convert_to_real_unicode.rb8
-rw-r--r--db/schema.rb11
2 files changed, 13 insertions, 6 deletions
diff --git a/db/migrate/20170703013609_convert_to_real_unicode.rb b/db/migrate/20170703013609_convert_to_real_unicode.rb new file mode 100644 index 0000000..9291c0c --- /dev/null +++ b/db/migrate/20170703013609_convert_to_real_unicode.rb
@@ -0,0 +1,8 @@
1class ConvertToRealUnicode < ActiveRecord::Migration[5.1]
2 def change
3 change_column :records, :recordable_type, :string, limit: 191
4 change_column :users, :login, :string, default: "", null: false, limit: 191
5 change_column :users, :email, :string, default: "", null: false, limit: 191
6 change_column :users, :reset_password_token, :string, limit: 191
7 end
8end
diff --git a/db/schema.rb b/db/schema.rb index c7c82ac..fc6614a 100644 --- a/db/schema.rb +++ b/db/schema.rb
@@ -10,7 +10,7 @@
10# 10#
11# It's strongly recommended that you check this file into your version control system. 11# It's strongly recommended that you check this file into your version control system.
12 12
13ActiveRecord::Schema.define(version: 20170629184901) do 13ActiveRecord::Schema.define(version: 20170703013609) do
14 14
15 create_table "ckeditor_assets", force: :cascade do |t| 15 create_table "ckeditor_assets", force: :cascade do |t|
16 t.string "data_file_name", null: false 16 t.string "data_file_name", null: false
@@ -28,7 +28,6 @@ ActiveRecord::Schema.define(version: 20170629184901) do
28 create_table "entries", force: :cascade do |t| 28 create_table "entries", force: :cascade do |t|
29 t.string "title" 29 t.string "title"
30 t.text "body" 30 t.text "body"
31 t.string "directory", null: false
32 t.string "slug", null: false 31 t.string "slug", null: false
33 t.string "type", null: false 32 t.string "type", null: false
34 t.datetime "created_at", null: false 33 t.datetime "created_at", null: false
@@ -37,7 +36,7 @@ ActiveRecord::Schema.define(version: 20170629184901) do
37 36
38 create_table "records", force: :cascade do |t| 37 create_table "records", force: :cascade do |t|
39 t.text "description" 38 t.text "description"
40 t.string "recordable_type" 39 t.string "recordable_type", limit: 191
41 t.integer "recordable_id" 40 t.integer "recordable_id"
42 t.datetime "created_at", null: false 41 t.datetime "created_at", null: false
43 t.datetime "updated_at", null: false 42 t.datetime "updated_at", null: false
@@ -45,10 +44,10 @@ ActiveRecord::Schema.define(version: 20170629184901) do
45 end 44 end
46 45
47 create_table "users", force: :cascade do |t| 46 create_table "users", force: :cascade do |t|
48 t.string "login", default: "", null: false 47 t.string "login", limit: 191, default: "", null: false
49 t.string "email", default: "", null: false 48 t.string "email", limit: 191, default: "", null: false
50 t.string "encrypted_password", default: "", null: false 49 t.string "encrypted_password", default: "", null: false
51 t.string "reset_password_token" 50 t.string "reset_password_token", limit: 191
52 t.datetime "reset_password_sent_at" 51 t.datetime "reset_password_sent_at"
53 t.datetime "remember_created_at" 52 t.datetime "remember_created_at"
54 t.integer "sign_in_count", default: 0, null: false 53 t.integer "sign_in_count", default: 0, null: false