--- /dev/null
+// Place all the styles related to the LicenseGroup controller here.
+// They will automatically be included in application.css.
+// You can use Sass (SCSS) here: http://sass-lang.com/
--- /dev/null
+// Place all the styles related to the ResourcePictureLicense controller here.
+// They will automatically be included in application.css.
+// You can use Sass (SCSS) here: http://sass-lang.com/
--- /dev/null
+class LicenseGroupController < ApplicationController
+end
--- /dev/null
+class ResourcePictureLicenseController < ApplicationController
+end
--- /dev/null
+module LicenseGroupHelper
+end
--- /dev/null
+module ResourcePictureLicenseHelper
+end
--- /dev/null
+class LicenseGroup < ActiveRecord::Base
+end
--- /dev/null
+class ResourcePictureLicense < ActiveRecord::Base
+end
--- /dev/null
+class CreateLicenseGroups < ActiveRecord::Migration
+ def change
+ create_table :license_groups do |t|
+ t.string :name, :null => false, :limit => 50
+ t.string :classname, :null => false, :limit => 50
+ t.string :caption, :null => false, :limit => 30
+ t.string :url, :null => false
+
+ t.timestamps
+ end
+ end
+end
--- /dev/null
+class CreateResourcePictureLicenses < ActiveRecord::Migration
+ def change
+ create_table :resource_picture_licenses do |t|
+ t.integer :resource_picture_id, :null => false
+ t.integer :license_id, :null => false
+ t.string :artist_name, :null => false
+ t.string :credit
+ t.string :settings
+
+ t.timestamps
+ end
+ end
+end
#\r
# It's strongly recommended to check this file into your version control system.\r
\r
-ActiveRecord::Schema.define(:version => 20120424100555) do\r
+ActiveRecord::Schema.define(:version => 20120617055928) do\r
\r
create_table "admins", :force => true do |t|\r
t.string "email", :default => "", :null => false\r
t.datetime "updated_at"\r
end\r
\r
+ create_table "license_groups", :force => true do |t|\r
+ t.string "name", :limit => 50, :null => false\r
+ t.string "classname", :limit => 50, :null => false\r
+ t.string "caption", :limit => 30, :null => false\r
+ t.string "url", :null => false\r
+ t.datetime "created_at"\r
+ t.datetime "updated_at"\r
+ end\r
+\r
create_table "licenses", :force => true do |t|\r
t.string "name", :null => false\r
t.string "url", :null => false\r
\r
add_index "panels", ["author_id"], :name => "index_panels_on_author_id"\r
\r
+ create_table "resource_picture_licenses", :force => true do |t|\r
+ t.integer "resource_picture_id", :null => false\r
+ t.integer "license_id", :null => false\r
+ t.string "artist_name", :null => false\r
+ t.string "credit"\r
+ t.string "settings"\r
+ t.datetime "created_at"\r
+ t.datetime "updated_at"\r
+ end\r
+\r
create_table "resource_pictures", :force => true do |t|\r
t.string "ext", :null => false\r
t.integer "width", :null => false\r
--- /dev/null
+require 'spec_helper'
+
+describe LicenseGroupController do
+
+end
--- /dev/null
+require 'spec_helper'
+
+describe ResourcePictureLicenseController do
+
+end
--- /dev/null
+require 'spec_helper'
+
+# Specs in this file have access to a helper object that includes
+# the LicenseGroupHelper. For example:
+#
+# describe LicenseGroupHelper do
+# describe "string concat" do
+# it "concats two strings with spaces" do
+# helper.concat_strings("this","that").should == "this that"
+# end
+# end
+# end
+describe LicenseGroupHelper do
+ pending "add some examples to (or delete) #{__FILE__}"
+end
--- /dev/null
+require 'spec_helper'
+
+# Specs in this file have access to a helper object that includes
+# the ResourcePictureLicenseHelper. For example:
+#
+# describe ResourcePictureLicenseHelper do
+# describe "string concat" do
+# it "concats two strings with spaces" do
+# helper.concat_strings("this","that").should == "this that"
+# end
+# end
+# end
+describe ResourcePictureLicenseHelper do
+ pending "add some examples to (or delete) #{__FILE__}"
+end
--- /dev/null
+require 'spec_helper'
+
+describe LicenseGroup do
+ pending "add some examples to (or delete) #{__FILE__}"
+end
--- /dev/null
+require 'spec_helper'
+
+describe ResourcePictureLicense do
+ pending "add some examples to (or delete) #{__FILE__}"
+end