Facilités pour mettre en place une version sqlite de l'adl
This commit is contained in:
parent
5f81517ab1
commit
5798fd001c
2
Gemfile
2
Gemfile
@ -89,7 +89,7 @@ gem 'tinymce-rails-langs'
|
|||||||
gem 'meta-tags'
|
gem 'meta-tags'
|
||||||
|
|
||||||
group :development do
|
group :development do
|
||||||
gem 'sqlite'
|
gem 'sqlite3'
|
||||||
gem 'guard-livereload'
|
gem 'guard-livereload'
|
||||||
gem 'guard-bundler'
|
gem 'guard-bundler'
|
||||||
gem 'guard-minitest'
|
gem 'guard-minitest'
|
||||||
|
@ -252,7 +252,7 @@ GEM
|
|||||||
slim (2.0.3)
|
slim (2.0.3)
|
||||||
temple (~> 0.6.6)
|
temple (~> 0.6.6)
|
||||||
tilt (>= 1.3.3, < 2.1)
|
tilt (>= 1.3.3, < 2.1)
|
||||||
slop (3.5.0)
|
slop (3.6.0)
|
||||||
spring (1.1.3)
|
spring (1.1.3)
|
||||||
sprockets (2.11.0)
|
sprockets (2.11.0)
|
||||||
hike (~> 1.2)
|
hike (~> 1.2)
|
||||||
@ -263,6 +263,7 @@ GEM
|
|||||||
actionpack (>= 3.0)
|
actionpack (>= 3.0)
|
||||||
activesupport (>= 3.0)
|
activesupport (>= 3.0)
|
||||||
sprockets (~> 2.8)
|
sprockets (~> 2.8)
|
||||||
|
sqlite3 (1.3.9)
|
||||||
temple (0.6.8)
|
temple (0.6.8)
|
||||||
terminal-table (1.4.5)
|
terminal-table (1.4.5)
|
||||||
therubyracer (0.12.1)
|
therubyracer (0.12.1)
|
||||||
@ -328,6 +329,7 @@ DEPENDENCIES
|
|||||||
sdoc (~> 0.4.0)
|
sdoc (~> 0.4.0)
|
||||||
simple_calendar
|
simple_calendar
|
||||||
spring
|
spring
|
||||||
|
sqlite3
|
||||||
therubyracer
|
therubyracer
|
||||||
tinymce-rails
|
tinymce-rails
|
||||||
tinymce-rails-langs
|
tinymce-rails-langs
|
||||||
|
@ -1,17 +1,8 @@
|
|||||||
# MySQL. Versions 4.1 and 5.0 are recommended.
|
|
||||||
#
|
|
||||||
# Install the MYSQL driver
|
|
||||||
# gem install mysql2
|
|
||||||
#
|
|
||||||
# Ensure the MySQL gem is defined in your Gemfile
|
|
||||||
# gem 'mysql2'
|
|
||||||
#
|
|
||||||
# And be sure to use new-style password hashing:
|
|
||||||
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
|
|
||||||
development:
|
development:
|
||||||
adapter: sqlite3
|
adapter: sqlite3
|
||||||
pool: 5
|
pool: 5
|
||||||
timeout: 5000
|
timeout: 5000
|
||||||
|
database: db/development.sqlite3
|
||||||
|
|
||||||
# Warning: The database defined as "test" will be erased and
|
# Warning: The database defined as "test" will be erased and
|
||||||
# re-generated from your development database when you run "rake".
|
# re-generated from your development database when you run "rake".
|
||||||
|
14
db/schema.rb
14
db/schema.rb
@ -24,9 +24,9 @@ ActiveRecord::Schema.define(version: 20140403204748) do
|
|||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "active_admin_comments", ["author_type", "author_id"], name: "index_active_admin_comments_on_author_type_and_author_id", using: :btree
|
add_index "active_admin_comments", ["author_type", "author_id"], name: "index_active_admin_comments_on_author_type_and_author_id"
|
||||||
add_index "active_admin_comments", ["namespace"], name: "index_active_admin_comments_on_namespace", using: :btree
|
add_index "active_admin_comments", ["namespace"], name: "index_active_admin_comments_on_namespace"
|
||||||
add_index "active_admin_comments", ["resource_type", "resource_id"], name: "index_active_admin_comments_on_resource_type_and_resource_id", using: :btree
|
add_index "active_admin_comments", ["resource_type", "resource_id"], name: "index_active_admin_comments_on_resource_type_and_resource_id"
|
||||||
|
|
||||||
create_table "admin_users", force: true do |t|
|
create_table "admin_users", force: true do |t|
|
||||||
t.string "email", default: "", null: false
|
t.string "email", default: "", null: false
|
||||||
@ -43,8 +43,8 @@ ActiveRecord::Schema.define(version: 20140403204748) do
|
|||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "admin_users", ["email"], name: "index_admin_users_on_email", unique: true, using: :btree
|
add_index "admin_users", ["email"], name: "index_admin_users_on_email", unique: true
|
||||||
add_index "admin_users", ["reset_password_token"], name: "index_admin_users_on_reset_password_token", unique: true, using: :btree
|
add_index "admin_users", ["reset_password_token"], name: "index_admin_users_on_reset_password_token", unique: true
|
||||||
|
|
||||||
create_table "cities", force: true do |t|
|
create_table "cities", force: true do |t|
|
||||||
t.string "name", default: "", null: false
|
t.string "name", default: "", null: false
|
||||||
@ -56,7 +56,7 @@ ActiveRecord::Schema.define(version: 20140403204748) do
|
|||||||
t.float "longitude", limit: 24
|
t.float "longitude", limit: 24
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "cities", ["name"], name: "cities_name", using: :btree
|
add_index "cities", ["name"], name: "cities_name"
|
||||||
|
|
||||||
create_table "events", force: true do |t|
|
create_table "events", force: true do |t|
|
||||||
t.string "title", default: "", null: false
|
t.string "title", default: "", null: false
|
||||||
@ -78,7 +78,7 @@ ActiveRecord::Schema.define(version: 20140403204748) do
|
|||||||
t.string "submitter_mail_id", limit: 32
|
t.string "submitter_mail_id", limit: 32
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "events", ["start_time", "end_time"], name: "events_date", using: :btree
|
add_index "events", ["start_time", "end_time"], name: "events_date"
|
||||||
|
|
||||||
create_table "lugs", force: true do |t|
|
create_table "lugs", force: true do |t|
|
||||||
t.integer "region", default: 0, null: false
|
t.integer "region", default: 0, null: false
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
|
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
|
||||||
# Mayor.create(name: 'Emanuel', city: cities.first)
|
# Mayor.create(name: 'Emanuel', city: cities.first)
|
||||||
|
|
||||||
|
Region.create name: 'Ma première région'
|
||||||
|
|
||||||
I18n::Backend::ActiveRecord::Translation.create([
|
I18n::Backend::ActiveRecord::Translation.create([
|
||||||
{ locale: 'fr', key: 'layouts.application.subtitle',
|
{ locale: 'fr', key: 'layouts.application.subtitle',
|
||||||
value: 'L\'agenda des évènements du Logiciel Libre en France' },
|
value: 'L\'agenda des évènements du Logiciel Libre en France' },
|
||||||
|
Loading…
Reference in New Issue
Block a user