Sha256: bd9747ce3468e0b421550afb5f70007494a4795fa6636eb66f79fe4d6366015d
Contents?: true
Size: 534 Bytes
Versions: 3
Compression:
Stored size: 534 Bytes
Contents
require 'active_record' ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:") ActiveRecord::Schema.define do create_table :accounts, :force => true do |t| t.column :id, :integer t.column :name, :string t.column :role, :string t.column :crypted_password, :string t.column :salt, :string t.column :email, :string end end class Account < ActiveRecord::Base; end Padrino::Admin::Adapters.register(:active_record)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
padrino-admin-0.5.0 | test/fixtures/active_record.rb |
padrino-admin-0.4.6 | test/fixtures/active_record.rb |
padrino-admin-0.4.5 | test/fixtures/active_record.rb |