From e47e83cf6bded3d1924b4d500193e7876833ef83 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 2 Jul 2017 13:03:43 -0400 Subject: 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 :( --- .../20170629184901_create_ckeditor_assets.rb | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 db/migrate/20170629184901_create_ckeditor_assets.rb (limited to 'db/migrate') 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 @@ +class CreateCkeditorAssets < ActiveRecord::Migration[5.1] + def self.up + create_table :ckeditor_assets do |t| + t.string :data_file_name, null: false + t.string :data_content_type + t.integer :data_file_size + t.string :data_fingerprint + t.string :type, limit: 30 + + # Uncomment it to save images dimensions, if your need it + t.integer :width + t.integer :height + + t.timestamps null: false + end + + add_index :ckeditor_assets, :type + end + + def self.down + drop_table :ckeditor_assets + end +end -- cgit 1.4.1