Sha256: 443950b71286462be34f95991d0a35655591b8b72765f22a79a4301d5f904d16
Contents?: true
Size: 1.96 KB
Versions: 7
Compression:
Stored size: 1.96 KB
Contents
ActiveRecord::Migration.create_table :adminpanel_users do |t| t.string :name t.string :email t.string :password_digest t.string :remember_token t.datetime :created_at, :null => false t.datetime :updated_at, :null => false end ActiveRecord::Migration.create_table :adminpanel_galleries do |t| t.string :file t.integer :position t.datetime :created_at, :null => false t.datetime :updated_at, :null => false end ActiveRecord::Migration.create_table :adminpanel_images do |t| t.string :file t.string :foreign_key t.string :model t.datetime :created_at, :null => false t.datetime :updated_at, :null => false end ActiveRecord::Migration.create_table :adminpanel_products do |t| t.string :price t.string :name t.text :description t.datetime :created_at, :null => false t.datetime :updated_at, :null => false end ActiveRecord::Migration.create_table :adminpanel_categories do |t| t.string :name t.datetime :created_at, :null => false t.datetime :updated_at, :null => false end ActiveRecord::Migration.create_table :adminpanel_categorizations do |t| t.integer :product_id t.integer :category_id t.datetime :created_at, :null => false t.datetime :updated_at, :null => false end ActiveRecord::Migration.create_table :adminpanel_sections do |t| t.string :name t.text :description t.string :key t.boolean :has_image t.string :page t.datetime :created_at, :null => false t.datetime :updated_at, :null => false t.boolean :has_description end module ActiveModel::Validations def errors_on(attribute) self.valid? [self.errors[attribute]].flatten.compact end alias :error_on :errors_on end RSpec.configure do |config| config.around do |example| ActiveRecord::Base.transaction do example.run raise ActiveRecord::Rollback end end end
Version data entries
7 entries across 7 versions & 1 rubygems