Theming: color scheme editing. Unfinished! Doesn't have any effect on css files yet.

This commit is contained in:
Neil Lalonde
2014-04-16 09:49:06 -04:00
parent 0f4014eef1
commit feaaf55a0c
34 changed files with 1086 additions and 84 deletions

View File

@@ -0,0 +1,13 @@
class CreateColorSchemes < ActiveRecord::Migration
def change
create_table :color_schemes do |t|
t.string :name, null: false
t.boolean :enabled, null: false, default: false
t.integer :versioned_id
t.integer :version, null: false, default: 1
t.timestamps
end
end
end

View File

@@ -0,0 +1,14 @@
class CreateColorSchemeColors < ActiveRecord::Migration
def change
create_table :color_scheme_colors do |t|
t.string :name, null: false
t.string :hex, null: false
t.integer :opacity, null: false, default: 100
t.integer :color_scheme_id, null: false
t.timestamps
end
add_index :color_scheme_colors, [:color_scheme_id]
end
end