about summary refs log tree commit diff stats
path: root/db/migrate
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-07-02 13:03:43 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-07-02 13:03:43 -0400
commite47e83cf6bded3d1924b4d500193e7876833ef83 (patch)
tree058f011637e67455dcd8451fbfa784b5883c6f69 /db/migrate
parent528ccde8915cd1ed7a39e137dd4d98869797956a (diff)
downloadthoughts-e47e83cf6bded3d1924b4d500193e7876833ef83.tar.gz
thoughts-e47e83cf6bded3d1924b4d500193e7876833ef83.tar.bz2
thoughts-e47e83cf6bded3d1924b4d500193e7876833ef83.zip
Created admin panel
Currently allows you to create and edit blogs, including associated
records. Uses a WYSIWYG editor that allows uploading images.

Also included jQuery :(
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20170629184901_create_ckeditor_assets.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/db/migrate/20170629184901_create_ckeditor_assets.rb b/db/migrate/20170629184901_create_ckeditor_assets.rb new file mode 100644 index 0000000..da986fd --- /dev/null +++ b/db/migrate/20170629184901_create_ckeditor_assets.rb
@@ -0,0 +1,23 @@
1class CreateCkeditorAssets < ActiveRecord::Migration[5.1]
2 def self.up
3 create_table :ckeditor_assets do |t|
4 t.string :data_file_name, null: false
5 t.string :data_content_type
6 t.integer :data_file_size
7 t.string :data_fingerprint
8 t.string :type, limit: 30
9
10 # Uncomment it to save images dimensions, if your need it
11 t.integer :width
12 t.integer :height
13
14 t.timestamps null: false
15 end
16
17 add_index :ckeditor_assets, :type
18 end
19
20 def self.down
21 drop_table :ckeditor_assets
22 end
23end